Skip to content

Commit

Permalink
test: check first line
Browse files Browse the repository at this point in the history
  • Loading branch information
fpellet committed Mar 27, 2024
1 parent 799dd92 commit 9003891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Argu.Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,8 @@ module ``Argu Tests Main List`` =
let ``Required subcommand attribute should fail on missing subcommand and display usage of subcommand and not main command`` () =
let args = [|"--mandatory-arg" ; "true" ; "multiple-mandatories" ; "--valuea"; "5"|]
raisesWith<ArguParseException> <@ parser.ParseCommandLine(args) @>
(fun e -> <@ e.Message.Contains $"USAGE: {parser.ProgramName} multiple-mandatories [--help] --valuea <int>" @>)
(fun e -> <@ e.FirstLine.Contains "ERROR: missing parameter '--valueb', '--valuec'"
&& e.Message.Contains $"USAGE: {parser.ProgramName} multiple-mandatories [--help] --valuea <int>" @>)

[<HelpFlags("--my-help")>]
[<HelpDescription("waka jawaka")>]
Expand Down

0 comments on commit 9003891

Please sign in to comment.