Method to return this Arg as an optional tuple of a String and an optional X value, according to whether it's an "option".
Method to return this Arg as an optional tuple of a String and an optional X value, according to whether it's an "option".
Some[(String, Option[X]) if name is not None otherwise None.
Method to get this Arg, if and only if its name matches the given String (w)
Method to get this Arg, if and only if its name matches the given String (w)
the string to match.
either Some(this) or else None.
Method to compare this Arg with that.
Method to compare this Arg with that.
TEST this method.
the Arg to compare with.
the result of invoking x compare y where x and y are the values of this and that Args.
Method to determine if this Arg has a value, thus either an option with value, or an operand.
Method to determine if this Arg has a value, thus either an option with value, or an operand.
true if value is not None
Method to determine if this Arg is an option (also known as a "flag"), as opposed to an operand.
Method to determine if this Arg is an option (also known as a "flag"), as opposed to an operand.
true if name is not None
Method to determine if this Arg is optional according to the synopsis provided.
Method to determine if this Arg is optional according to the synopsis provided.
the synopsis.
Kleenean(true if this Arg is optional.
Method to map this Arg into an Arg of underlying type Y
Method to map this Arg into an Arg of underlying type Y
the underlying type of the result.
a function to convert an X into a Y.
an Arg[Y]
the optional name.
Method to return this Arg as an optional X value, according to whether it's an "operand".
Method to return this Arg as an optional X value, according to whether it's an "operand".
Some[X] if name is None otherwise None.
Method to process this Arg, given a map of options and their corresponding functions.
Method to process this Arg, given a map of options and their corresponding functions.
a Map of String->function where function is of type Option[X]=>Unit
a Success[None] if there was a function defined for this Arg in the map fm AND if the function invocation was successful; otherwise a Failure[X]
Method to form a String from this Arg
Method to form a String from this Arg
"Arg: flag name/anonymous with value: value/none"
Method to get the value of this Arg as a Y.
Method to get the value of this Arg as a Y.
the type of the result.
the result of deriving a Y value from the actual value of this Arg, wrapped in Try.
the optional value.
Case class to represent an "option" in a command line. Such an option has an (optional) name which is a String; and an (optional) value, which is of type X.
the underlying type of the value.
the optional name.
the optional value.