The argument's description, displayed in the usage message.
The argument's description, displayed in the usage message.
Whether or not the argument has an associated value.
Whether or not the argument has an associated value. For instance, parameters have values, and non-flag options have values. Flag options, however, do not.
List of option names, both long (multi-character) and short (single-character).
The ArgotParser
instance that owns this object.
The ArgotParser
instance that owns this object.
Resets the internal state of the argument to what it was right after construction, undoing the effects of any parse operation.
Resets the internal state of the argument to what it was right after construction, undoing the effects of any parse operation.
The standard equals()
method.
The standard equals()
method.
some other object
true
if the other object is the same class and is equivalent,
false
if not.
Calculate the hash code for the object.
Calculate the hash code for the object. The default implementation returns the hash code of the key.
the hash code
#key
Return an object that represents the key for this parameter, suitable for hashing, sorting, etc.
Return an object that represents the key for this parameter, suitable
for hashing, sorting, etc. They key for a command line option is the
result of calling name()
.
the key
Return a suitable name for the option.
Return a suitable name for the option. The returned name will have a "-" or "--" prefix, depending on whether it's long or short. It will be based on the first option in the list of option names.
the option name
Get a printable name for this object.
Get a printable name for this object.
the printable name
CommandLineOption
is the base trait for all option classes.the value type
MultiValueOption
SingleValueOption