Type Members
-
type
OptionMagic
<: Implicit
Abstract Value Members
-
def
help
(str: ⇒ String): Unit
-
implicit def
optionMagicAdditions
(s: String): OptionMagic
Concrete Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
object
Bash
extends Opt
-
-
def
asInstanceOf
[T0]
: T0
-
def
clone
(): AnyRef
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
heading
(str: ⇒ String): Unit
-
-
def
isInstanceOf
[T0]
: Boolean
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
val
optDefault
: String
-
val
optDefaultInt
: Int
-
val
optEnv
: String
-
val
optExpand
: Unit
-
val
optIsUnary
: Boolean
-
val
optopt
: Option[String]
-
val
optoptInt
: Option[Int]
-
lazy val
programInfo
: Info
-
lazy val
referenceSpec
: scala.tools.cmd.DemoSpec.type
-
val
selfUpdateName
: Option[String]
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
A sample command specification for illustrative purposes. First take advantage of the meta-options:
// this command creates an executable runner script "demo" % scala scala.tools.cmd.Demo --self-update demo
// this one creates and sources a completion file - note backticks %
./demo --bash
// and now you have a runner with working completion % ./demo --<tab> --action --defint --int --bash --defstr --str --defenv --self-update --unary
The normal option configuration is plausibly self-explanatory.