a list with switches and their values that have been extracted
the index of this element on the command line
the index of this element on the command line
the index of this element on the command line
Returns the key used for this parameter value on the command line.
Returns the key used for this parameter value on the command line. While values are stored under the main parameter key, this method allows determining the key the user has specified (which may be an alias).
the key used for this CliElement
a list with switches and their values that have been extracted
Returns the raw value of this CliElement as specified by the user.
Returns the raw value of this CliElement as specified by the user. The value may be transformed during the extraction phase. If transformation fails, it might be useful to have the original value to construct an error message.
the value of this CliElement
(Since version ) see corresponding Javadoc for more information.
A concrete CliElement class representing a set of switches.
A single parameter on the command line can contain multiple switches, e.g. if multiple short keys are composed, as in tar xvzf. Therefore, this class holds a list with switches that have been extracted. For each switch its key and its value (which is derived from the default value defined in the parameter model) is stored.
Note: The properties for key and value are dummies; during parameter parsing, for each switch in the result, a new element is created.
a list with switches and their values that have been extracted
the index of this element on the command line