Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Parser[U]trait ParserMethods[U]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Arguments this parser accepts.
Arguments this parser accepts.
Used to generate help / usage messages.
Attributes
Attributes
- Definition Classes
-
ParserMethods
Attributes
- Definition Classes
-
ParserMethods
Attributes
- Definition Classes
-
ParserMethods
Get the final result from the final intermediate value.
Get the final result from the final intermediate value.
Typically fails if some mandatory arguments were not specified, so are missing in d
, preventing building a T
out of it.
Value parameters
- d:
-
final intermediate value
- nameFormatter:
-
formats names to the appropriate format
Attributes
- Returns
-
in case of success, a
T
wrapped in scala.Right; else, an error message, wrapped in caseapp.core.Error and scala.Left
Initial value used to accumulate parsed arguments.
Initial value used to accumulate parsed arguments.
Attributes
Process the next argument.
Process the next argument.
If some arguments were successfully processed (third case in return below), the returned remaining argument sequence must be shorter than the passed args
.
This method doesn't fully process args
. It tries just to parse one argument (typically one option --foo
and its value bar
, so two elements from args
- it can also be only one element in case of a flag), if possible. If you want to fully process a sequence of arguments, see parse
or detailedParse
.
Value parameters
- args:
-
arguments to process
- d:
-
current intermediate result
- nameFormatter:
-
formats name to the appropriate format
Attributes
- Returns
-
if no argument were parsed,
Right(None)
; if an error occurred, an error message wrapped in caseapp.core.Error and scala.Left; else the next intermediate value and the remaining arguments wrapped in scala.Some and scala.Right.
Inherited methods
Attributes
- Inherited from:
- ParserMethods
Attributes
- Inherited from:
- ParserMethods
Attributes
- Inherited from:
- ParserMethods
Keeps the remaining args before and after a possible -- separated
Keeps the remaining args before and after a possible -- separated
Attributes
- Inherited from:
- ParserMethods
Get the final result from the final intermediate value.
Get the final result from the final intermediate value.
Typically fails if some mandatory arguments were not specified, so are missing in d
, preventing building a T
out of it.
Value parameters
- d:
-
final intermediate value
Attributes
- Returns
-
in case of success, a
T
wrapped in scala.Right; else, an error message, wrapped in caseapp.core.Error and scala.Left - Inherited from:
- ParserMethods
Attributes
- Inherited from:
- Parser
Attributes
- Inherited from:
- Parser
Attributes
- Inherited from:
- ParserMethods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- ParserMethods
Attributes
- Inherited from:
- ParserMethods
Attributes
- Inherited from:
- Parser
Attributes
- Inherited from:
- Parser