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
81 stars 6 forks source link

Running the help option from a command #10

Closed mikecole closed 10 months ago

mikecole commented 10 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 10 months ago
mikecole commented 10 months ago

This works perfectly. Thanks!