mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Use latest C# features
This commit is contained in:
@@ -15,9 +15,9 @@ public partial class Benchmarks
|
||||
{
|
||||
var command = new RootCommand
|
||||
{
|
||||
new Option(new[] { "--str", "-s" }) { Argument = new Argument<string?>() },
|
||||
new Option(new[] { "--int", "-i" }) { Argument = new Argument<int>() },
|
||||
new Option(new[] { "--bool", "-b" }) { Argument = new Argument<bool>() }
|
||||
new Option(["--str", "-s"]) { Argument = new Argument<string?>() },
|
||||
new Option(["--int", "-i"]) { Argument = new Argument<int>() },
|
||||
new Option(["--bool", "-b"]) { Argument = new Argument<bool>() }
|
||||
};
|
||||
|
||||
command.Handler = CommandHandler.Create(
|
||||
|
||||
Reference in New Issue
Block a user