From 90038918e56f26eecb3c21a791e99e54510f03dd Mon Sep 17 00:00:00 2001 From: fpellet Date: Wed, 27 Mar 2024 11:11:02 +0100 Subject: [PATCH] test: check first line --- tests/Argu.Tests/Tests.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 " @>) [] []