Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
apply(): Unit
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
command: Option[Either[String, String]]
-
def
delayedInit(body: ⇒ Unit): Unit
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
remainingArgs: Seq[String]
-
def
setCommand(cmd: Option[Either[String, String]]): Unit
-
def
setRemainingArgs(remainingArgs: Seq[String], extraArgs: Seq[String]): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from DelayedInit
Inherited from AnyRef
Inherited from Any
Have a sealed trait extend this for its case class children to become commands.
Extends
DelayedInit
likeApp
does.Like with
App
, the remaining arguments are accessible with the methodremainingArgs
.Example
In the example above,
MyApp
now has amain
method, that accepts arguments likefirst a b
orsecond c d
. In the first case, it will create aFirst
, and call its body (whose initialization is delayed thanks to delayed initialization). In the second case, it will create aSecond
instead, and call its body too.(Since version 1.2.0-M2) See CommandApp instead