We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bfecf6 commit 1f37d7dCopy full SHA for 1f37d7d
src/System.CommandLine.Suggest.Tests/EndToEndTestApp/Program.cs
@@ -33,9 +33,7 @@ static async Task Main(string[] args)
33
return Task.CompletedTask;
34
});
35
36
- CommandLineConfiguration commandLine = new (rootCommand);
37
-
38
- await commandLine.InvokeAsync(args);
+ await rootCommand.Parse(args).InvokeAsync();
39
}
40
41
src/System.CommandLine.Tests/TestApps/NativeAOT/Program.cs
@@ -17,7 +17,7 @@ private static int Main(string[] args)
17
18
command.SetAction(Run);
19
20
- return new CommandLineConfiguration(command).Invoke(args);
+ return command.Parse(args).Invoke();
21
22
void Run(ParseResult parseResult)
23
{
0 commit comments