class OParser[A, C] extends AnyRef
A monadic commandline options parser.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- OParser
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def ++(other: OParser[_, C]): OParser[A, C]
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def abbr(x: String): OParser[A, C]
Adds short option -x.
- def action(f: (A, C) => C): OParser[A, C]
Adds a callback function.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def children(cs: OParser[_, C]*): OParser[A, C]
Adds a parser under this command.
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap(f: (Unit) => OParser[_, C]): OParser[A, C]
- def foreach(f: (Unit) => Unit): Unit
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hidden(): OParser[A, C]
Hides the option in any usage text.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keyName(x: String): OParser[A, C]
Adds key name used in the usage text.
- def keyValueName(k: String, v: String): OParser[A, C]
Adds key and value names used in the usage text.
- def map(f: (Unit) => Unit): OParser[A, C]
- def maxOccurs(n: Int): OParser[A, C]
Allows the argument to appear at most
ntimes. - def minOccurs(n: Int): OParser[A, C]
Requires the option to appear at least
ntimes. - 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(): OParser[A, C]
Chanages the option to be optional.
- def required(): OParser[A, C]
Requires the option to appear at least once.
- def subHead[B](head: OptionDef[B, C]): OParser[B, C]
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def text(x: String): OParser[A, C]
Adds description in the usage text.
- def toList: List[OptionDef[_, C]]
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unbounded(): OParser[A, C]
Allows the argument to appear multiple times.
- def validate(f: (A) => Either[String, Unit]): OParser[A, C]
Adds custom validation.
- def valueName(x: String): OParser[A, C]
Adds value name used in the usage text.
- 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()