-
Notifications
You must be signed in to change notification settings - Fork 409
Open
Labels
Milestone
Description
Say there is an QuietOption which is a boolean and has some action associated with it.
If --quiet is specified on the command line, the associated action gets added to the PreAction list and is executed before the main command action.
If --quiet is not specified on the command line, but instead it is given a default value - say driven from configuration - then the associated action is not added to the PreAction list and is not executed.
As far as the parse result is concerned, both of these look the same and so should function the same, i.e. the --quiet option has been supplied somehow and action should happen accordingly.
marwatk