final case class AccumulatorArgParser[T](description: String, parse: (Option[T], Int, Int, String) ⇒ Either[Error, T]) extends ArgParser[T] with Product with Serializable
- Alphabetic
- By Inheritance
- AccumulatorArgParser
- Serializable
- Serializable
- Product
- Equals
- ArgParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(current: Option[T], index: Int, span: Int, value: String): Either[Error, T]
Parses a value.
Parses a value.
value
must be consumed. Corresponds to cases like--foo=bar
.- returns
in case of success, a
T
, wrapped in scala.Right; else, and error message, wrapped in caseapp.core.Error and scala.Left
- Definition Classes
- AccumulatorArgParser → ArgParser
-
def
apply(current: Option[T], index: Int): Either[Error, T]
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
.- returns
a
T
wrapped in scala.Right in case of success, or an error message wrapped in caseapp.core.Error and scala.Left else
- Definition Classes
- ArgParser
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(obj: Any): Boolean
- Definition Classes
- AccumulatorArgParser → Equals
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
description: String
Value description.
Value description.
Used in help messages.
- Definition Classes
- AccumulatorArgParser → ArgParser
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- AccumulatorArgParser → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AccumulatorArgParser → AnyRef → Any
-
def
isFlag: Boolean
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.
- Definition Classes
- ArgParser
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
optional(current: Option[T], index: Int, span: Int, value: String): (Consumed, Either[Error, T])
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.- 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
- Definition Classes
- ArgParser
- val parse: (Option[T], Int, Int, String) ⇒ Either[Error, T]
-
def
productArity: Int
- Definition Classes
- AccumulatorArgParser → Product
-
def
productElement(n: Int): Any
- Definition Classes
- AccumulatorArgParser → Product
-
def
productPrefix: String
- Definition Classes
- AccumulatorArgParser → Product
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AccumulatorArgParser → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withDescription(description: String): AccumulatorArgParser[T]
- def withParse(parse: (Option[T], Int, Int, String) ⇒ Either[Error, T]): AccumulatorArgParser[T]
-
final
def
xmap[U](from: (U) ⇒ T, to: (T) ⇒ U): ArgParser[U]
- Definition Classes
- ArgParser
-
final
def
xmapError[U](from: (U) ⇒ T, to: (T) ⇒ Either[Error, U]): ArgParser[U]
- Definition Classes
- ArgParser