the parent parser instance that owns the parameter
the placeholder name for the parameter's value, for the usage message
textual description of the parameter
whether or not the parameter is optional. Only one parameter may be optional, and it must be last one
a function that will convert a string value for
the parameter to an appropriate value of type T
.
a function that will convert a string value for
the parameter to an appropriate value of type T
.
a function that will convert a string value for
the parameter to an appropriate value of type T
.
Method that converts a string value to type T
.
Method that converts a string value to type T
. Should throw
ArgotConversionException
on error.
the string to convert
the converted result
textual description of the parameter
textual description of the parameter
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.
Always true
, indicating that HasValue
classes always have an
associated value.
Always true
, indicating that HasValue
classes always have an
associated value.
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.
the key
Displayable name for the argument, used in the usage message.
Displayable name for the argument, used in the usage message.
the name
whether or not the parameter is optional.
whether or not the parameter is optional. Only one parameter may be optional, and it must be last one
the parent parser instance that owns the parameter
the parent parser instance that owns the parameter
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.
Given a string value, convert the value to type T
by calling
convert()
, then store it by calling storeValue()
.
Given a string value, convert the value to type T
by calling
convert()
, then store it by calling storeValue()
.
the string to convert
Whether or not the class supports multiple values (e.
Whether or not the class supports multiple values (e.g., a sequence) or just one.
Get the option's value.
Get the option's value.
Some(value)
if the value is set; None
if not.
the placeholder name for the parameter's value, for the usage message
the placeholder name for the parameter's value, for the usage message
Class for a non-option parameter that takes a single value.