diff --git a/tests/Argu.Tests/Tests.fs b/tests/Argu.Tests/Tests.fs index c3416877..88fc1a7f 100644 --- a/tests/Argu.Tests/Tests.fs +++ b/tests/Argu.Tests/Tests.fs @@ -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 <@ parser.ParseCommandLine(args) @> - (fun e -> <@ e.Message.Contains $"USAGE: {parser.ProgramName} multiple-mandatories [--help] --valuea " @>) + (fun e -> <@ e.FirstLine.Contains "ERROR: missing parameter '--valueb', '--valuec'" + && e.Message.Contains $"USAGE: {parser.ProgramName} multiple-mandatories [--help] --valuea " @>) [] []