dotmake-build / command-line

Declarative syntax for System.CommandLine via attributes for easy, fast, strongly-typed (no reflection) usage. Includes a source generator which automagically converts your classes to CLI commands and properties to CLI options or CLI arguments.
https://dotmake.build
MIT License
74 stars 6 forks source link

Running the help option from a command #10

Closed mikecole closed 7 months ago

mikecole commented 7 months ago

Currently the tool supports running the help command like so:

dotnet run -- -?

However, I'd like the command itself to be able to invoke that help text so the following would have the same effect:

dotnet run --

This would mimic the nuget functionality:

dotnet nuget dotnet nuget -?

calacayir commented 7 months ago
mikecole commented 7 months ago

This works perfectly. Thanks!