diff --git a/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_CustomScenarios.cs b/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_CustomScenarios.cs index 942471f05..74d9215db 100644 --- a/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_CustomScenarios.cs +++ b/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_CustomScenarios.cs @@ -20,10 +20,7 @@ public void SetupOneOptWithNestedCommand() { var rootCommand = new Command("root_command"); var nestedCommand = new Command("nested_command"); - var option = new Option("-opt1") - { - Argument = new Argument(() => 123) - }; + var option = new Option("-opt1", () => 123); nestedCommand.AddOption(option); rootCommand.AddCommand(nestedCommand); diff --git a/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_Directives_Suggest.cs b/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_Directives_Suggest.cs index 257e4aeb0..c3a0e2b9d 100644 --- a/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_Directives_Suggest.cs +++ b/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_Directives_Suggest.cs @@ -26,20 +26,8 @@ public void Setup() var eatCommand = new Command("eat") { - new Option("--fruit") - { - Argument = new Argument() - { - Suggestions = {"apple", "banana", "cherry" } - } - }, - new Option("--vegetable") - { - Argument = new Argument() - { - Suggestions = {"asparagus", "broccoli", "carrot" } - } - } + new Option("--fruit").AddSuggestions("apple", "banana", "cherry"), + new Option("--vegetable").AddSuggestions("asparagus", "broccoli", "carrot") }; _testParser = new CommandLineBuilder(eatCommand) diff --git a/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_Options_Bare.cs b/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_Options_Bare.cs index 926b86cfe..5ed969570 100644 --- a/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_Options_Bare.cs +++ b/src/System.CommandLine.Benchmarks/CommandLine/Perf_Parser_Options_Bare.cs @@ -21,13 +21,9 @@ public class Perf_Parser_Options_Bare private IEnumerable