ValueConverter
Converter from list of plain strings to something meaningful.
Converter from list of plain strings to something meaningful.
Value members
Abstract methods
Takes a list of arguments to all option invocations: for example, "-a 1 2 -a 3 4 5" would produce List(("a",List(1,2)),("a",List(3,4,5))).
Takes a list of arguments to all option invocations: for example, "-a 1 2 -a 3 4 5" would produce List(("a",List(1,2)),("a",List(3,4,5))).
-
parse returns Left, if there was an error while parsing.
-
if no option was found, it returns Right(None).
-
if option was found, it returns Right(...).
Concrete methods
Transformation of argument name to argument definition in help.
Transformation of argument name to argument definition in help.
Map the converter to another value. This method is different from .map because it can return an error (without resorting to exceptions, returning Left(msg)) or can filter out unsupported values (by returning Right(None)).
Map the converter to another value. This method is different from .map because it can return an error (without resorting to exceptions, returning Left(msg)) or can filter out unsupported values (by returning Right(None)).