Parses argument values of type T
.
Attributes
- T:
parsed value type
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- class AccumulatorArgParser[T]class FlagAccumulatorArgParser[T]class FlagArgParser[T]class LastArgParser[T]class SimpleArgParser[T]
Members list
Value members
Abstract methods
Parses a value.
Parses a value.
value
must be consumed. Corresponds to cases like --foo=bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, a
T
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Parses a value.
Parses a value.
value
must be consumed. Corresponds to cases like --foo=bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, a
T
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Parses a value.
Parses a value.
value
must be consumed. Corresponds to cases like --foo=bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, a
T
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Parses a value.
Parses a value.
value
must be consumed. Corresponds to cases like --foo=bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, a
T
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Parses a value.
Parses a value.
value
must be consumed. Corresponds to cases like --foo=bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, a
T
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Value description.
Value description.
Used in help messages.
Attributes
Value description.
Value description.
Used in help messages.
Attributes
Value description.
Value description.
Used in help messages.
Attributes
Value description.
Value description.
Used in help messages.
Attributes
Value description.
Value description.
Used in help messages.
Attributes
Concrete methods
Called when the corresponding argument was specified with no value.
Called when the corresponding argument was specified with no value.
Can happen if the option was enabled as very last argument, like --bar
in --foo 1 other --bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- Returns:
a
T
wrapped in scala.Right in case of success, or an error message wrapped in caseapp.core.Error and scala.Left else
Called when the corresponding argument was specified with no value.
Called when the corresponding argument was specified with no value.
Can happen if the option was enabled as very last argument, like --bar
in --foo 1 other --bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- Returns:
a
T
wrapped in scala.Right in case of success, or an error message wrapped in caseapp.core.Error and scala.Left else
Called when the corresponding argument was specified with no value.
Called when the corresponding argument was specified with no value.
Can happen if the option was enabled as very last argument, like --bar
in --foo 1 other --bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- Returns:
a
T
wrapped in scala.Right in case of success, or an error message wrapped in caseapp.core.Error and scala.Left else
Called when the corresponding argument was specified with no value.
Called when the corresponding argument was specified with no value.
Can happen if the option was enabled as very last argument, like --bar
in --foo 1 other --bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- Returns:
a
T
wrapped in scala.Right in case of success, or an error message wrapped in caseapp.core.Error and scala.Left else
Called when the corresponding argument was specified with no value.
Called when the corresponding argument was specified with no value.
Can happen if the option was enabled as very last argument, like --bar
in --foo 1 other --bar
.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- Returns:
a
T
wrapped in scala.Right in case of success, or an error message wrapped in caseapp.core.Error and scala.Left else
Whether the parsed value corresponds to a flag.
Whether the parsed value corresponds to a flag.
Prevents telling corresponding arguments expect a value in help messages.
Attributes
Whether the parsed value corresponds to a flag.
Whether the parsed value corresponds to a flag.
Prevents telling corresponding arguments expect a value in help messages.
Attributes
Whether the parsed value corresponds to a flag.
Whether the parsed value corresponds to a flag.
Prevents telling corresponding arguments expect a value in help messages.
Attributes
Whether the parsed value corresponds to a flag.
Whether the parsed value corresponds to a flag.
Prevents telling corresponding arguments expect a value in help messages.
Attributes
Whether the parsed value corresponds to a flag.
Whether the parsed value corresponds to a flag.
Prevents telling corresponding arguments expect a value in help messages.
Attributes
Parses a value.
Parses a value.
Unlike apply
above, value
may or may not be consumed. Corresponds to cases like --foo bar
.
Use of value
or not must be returned via the caseapp.core.argparser.Consumed value.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, whether
value
was consumed and aT
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Parses a value.
Parses a value.
Unlike apply
above, value
may or may not be consumed. Corresponds to cases like --foo bar
.
Use of value
or not must be returned via the caseapp.core.argparser.Consumed value.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, whether
value
was consumed and aT
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Parses a value.
Parses a value.
Unlike apply
above, value
may or may not be consumed. Corresponds to cases like --foo bar
.
Use of value
or not must be returned via the caseapp.core.argparser.Consumed value.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, whether
value
was consumed and aT
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Parses a value.
Parses a value.
Unlike apply
above, value
may or may not be consumed. Corresponds to cases like --foo bar
.
Use of value
or not must be returned via the caseapp.core.argparser.Consumed value.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, whether
value
was consumed and aT
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
Parses a value.
Parses a value.
Unlike apply
above, value
may or may not be consumed. Corresponds to cases like --foo bar
.
Use of value
or not must be returned via the caseapp.core.argparser.Consumed value.
Attributes
- current:
latest parsed value wrapped in scala.Some if any, scala.None else
- value:
scala.Predef.String to parse
- Returns:
in case of success, whether
value
was consumed and aT
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left