trait OptResult extends AnyRef
The result of parsing an argument sequence.
- Alphabetic
- By Inheritance
- OptResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def apply[A](name: String): A
Returns the value of an option.
Returns the value of an option.
- A
the expected value type
- name
the option name
- returns
the value of the option identified by
name
- Exceptions thrown
ClassCastException
if the value cannot be cast toA
NoSuchElementException
ifname
is not present
- abstract def args: Seq[String]
Returns a sequence of all non-option arguments following the last option.
Returns a sequence of all non-option arguments following the last option.
- returns
a sequence of all non-option arguments
- abstract def get[A](name: String): Option[A]
Optionally returns the value of an option.
Optionally returns the value of an option.
- A
the expected value type
- name
the option name
- returns
a
Some
containing the value of the option if present, otherwiseNone
- Exceptions thrown
ClassCastException
if the value cannot be cast toA
- abstract def optv: Map[String, Any]
Returns the option value map.
Returns the option value map.
Note that non-option arguments are associated with the option name
"@"
, which is guaranteed to be present in the map even if the argument sequence was empty.- returns
the option value map
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])