eagerOption
Add an eager option to this command that, when invoked, runs action.
Parameters
The names that can be used to invoke this option. They must start with a punctuation character.
The description of this option, usually a single line.
Hide this option from help outputs.
Extra information about this option to pass to the help formatter
All options that share a group name will be grouped together in help output.
This callback is called when the option is encountered on the command line. If you want to print a message and halt execution normally, you should throw a PrintMessage exception. If you want to exit normally without printing a message, you should throw Abort(error=false)
.
Add an eager option to this command that, when invoked, runs action.
Parameters
The names that can be used to invoke this option. They must start with a punctuation character.
The description of this option, usually a single line.
Hide this option from help outputs.
Extra information about this option to pass to the help formatter
All options that share a group name will be grouped together in help output.
This callback is called when the option is encountered on the command line. If you want to print a message and halt execution normally, you should throw a PrintMessage exception. If you want to exit normally without printing a message, you should throw ProgramResult(0)
.