OptionWithValues
An Option that takes one or more values.
Properties
If true, this option can be specified without a name e.g. -2
instead of -o2
If false, invocations must be of the form --foo=1
or -f1
. If true, the forms --foo 1
and -f 1
are also accepted.
Optional set of strings to use when the user invokes shell autocomplete on a value for this option.
The completion candidates set on this option, or null
if no candidates have been set
A block that will return the help text for this option, or null
if no getter has been specified
A block that will return the metavar for this option, or null
if no getter has been specified
The group that this option belongs to, or null. Set by the group.
Names that can be used for a secondary purpose, like disabling flag options.
Called in finalize to transform all invocations into the final value.
Called in finalize to transform each invocation.
Called after all parameters have been finalized to validate the output of transformAll
Called in finalize to transform each value provided to each invocation.
Optional explicit key to use when looking this option up from a ValueSource
A function to split option values on before conversion
Functions
Change this option to take multiple values, each split on a delimiter, and converted to a map.
Change this option to take multiple values, each split on a delimiter, its first value converted with the keySelector, and converted to a map.
Change this option to take multiple values, each split on a delimiter, its second value converted with the valueSelector, and converted to a map.
Check the final argument value and raise an error if it's not valid.
Check the final option value and raise an error if it's not valid.
Convert the option based on a fixed set of values.
Restrict the option to a fixed set of values.
Convert this flag's value type.
Convert the option's value type.
Create a new option that is a copy of this one with the same transforms.
Create a new option that is a copy of this one with different transforms.
If the option is not called on the command line (and is not set in an envvar), call the value and use its return value for the option.
Use -
as the default value for an inputStream option.
Use -
as the default value for an outputStream option.
Mark this option as deprecated in the help output.
Called after this command's argv is parsed to transform and store the option's value.
Convert the option to an option group based on a fixed set of values.
Convert the option into a set of flags that each map to an option group.
Set the help for this option lazily.
Set the help for this option.
Convert the option to an InputStream.
A flag that doesn't have a default value.
Allow this option to be specified with or without an explicit value.
Allow this option to be specified with or without an explicit value.
The description of this option, usually a single line.
Convert the option to an OutputStream.
Information about this option for the help output.
Convert the option to a Path.
Called after all of a command's parameters have been finalized to perform validation of the final value.
Implementations must call ParameterHolder.registerOption
If the option is not called on the command line (and is not set in an envvar), throw a MissingOption.
Restrict the option values to fit into a range.
Change to option to take any number of values, separated by matched of a regex.
Change to option to take any number of values, separated by the delimiters.
Transform all calls to the option to the final option type.
Change the number of values that this option takes.
Check the final option value and raise an error if it's not valid.
Change this option to take a variable number of values.