Skip to content

Commit 1f37d7d

Browse files
committed
fix test app code
1 parent 9bfecf6 commit 1f37d7d

File tree

2 files changed

+2
-4
lines changed
  • src
    • System.CommandLine.Suggest.Tests/EndToEndTestApp
    • System.CommandLine.Tests/TestApps/NativeAOT

2 files changed

+2
-4
lines changed

src/System.CommandLine.Suggest.Tests/EndToEndTestApp/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ static async Task Main(string[] args)
3333
return Task.CompletedTask;
3434
});
3535

36-
CommandLineConfiguration commandLine = new (rootCommand);
37-
38-
await commandLine.InvokeAsync(args);
36+
await rootCommand.Parse(args).InvokeAsync();
3937
}
4038
}
4139
}

src/System.CommandLine.Tests/TestApps/NativeAOT/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private static int Main(string[] args)
1717

1818
command.SetAction(Run);
1919

20-
return new CommandLineConfiguration(command).Invoke(args);
20+
return command.Parse(args).Invoke();
2121

2222
void Run(ParseResult parseResult)
2323
{

0 commit comments

Comments
 (0)