Create a new option that is a copy of this one with the same transforms.
) -> T
, transformAll: CallsTransformer
>, validator: OptionValidator
>, names: Set
> = this.names, secondaryNames: Set
> = this.secondaryNames, help: String
= this.optionHelp, hidden: Boolean
= this.hidden, helpTags: Map
> = this.helpTags, valueSourceKey: String
? = this.valueSourceKey, envvar: String
? = this.envvar): FlagOption
Create a new option that is a copy of this one with different transforms.
Called after this command's argv is parsed to transform and store the option's value.
A name representing the values for this option that can be displayed to the user.
Information about this option for the help output.
Called after all of a command's parameters have been finalize
d to perform validation of the final value.
Optional set of strings to use when the user invokes shell autocomplete on a value for this option.
The name of the environment variable for this option.
The name of the group, or null if this option should not be grouped in the help output.
Extra information about this option to pass to the help formatter.
If true, this option should not appear in help output.
The names that can be used to invoke this option.
The number of values that must be given to this option.
The description of this option, usually a single line.
The group that this option belongs to, or null.
The parser for this option's values.
Names that can be used for a secondary purpose, like disabling flag options.
Called to transform all invocations of this option into the final option type.
Called to transform string values from envvars and value sources into the option type.
The value for this option.
Optional explicit key to use when looking this option up from a ValueSource
Convert the option's value type.
Set a default value
for an option.
Set a default value
for an option from a lazy builder which is only called if the default value is used.
Mark this option as deprecated in the help output.
Set the help for this option.
If the option is not called on the command line (and is not set in an envvar), throw a MissingOption
Check the final option value and raise an error if it's not valid.