final class FlagAccumulatorArgParser[T] extends ArgParser[T] with Product with Serializable
- Alphabetic
- By Inheritance
- FlagAccumulatorArgParser
- Serializable
- Product
- Equals
- ArgParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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]): Either[Error, T]
Called when the corresponding argument was specific with no value.
Called when the corresponding argument was specific 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
- FlagAccumulatorArgParser → ArgParser
- def apply(current: Option[T], 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
- FlagAccumulatorArgParser → ArgParser
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(obj: Any): Boolean
- Definition Classes
- FlagAccumulatorArgParser → Equals
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val description: String
Value description.
Value description.
Used in help messages.
- Definition Classes
- FlagAccumulatorArgParser → ArgParser
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
- Definition Classes
- FlagAccumulatorArgParser → Equals → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- FlagAccumulatorArgParser → 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
- FlagAccumulatorArgParser → 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], 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
- FlagAccumulatorArgParser → ArgParser
- val parse: (Option[T], Option[String]) => Either[Error, T]
- def productArity: Int
- Definition Classes
- FlagAccumulatorArgParser → Product
- def productElement(n: Int): Any
- Definition Classes
- FlagAccumulatorArgParser → Product
- def productElementName(n: Int): String
- Definition Classes
- FlagAccumulatorArgParser → Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- FlagAccumulatorArgParser → Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- FlagAccumulatorArgParser → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withDescription(description: String): FlagAccumulatorArgParser[T]
- def withParse(parse: (Option[T], Option[String]) => Either[Error, T]): FlagAccumulatorArgParser[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