Packages

c

scala.tools.cmd

CommandLine

class CommandLine extends CommandLineConfig

An instance of a command line, parsed according to a Spec.

Source
CommandLine.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CommandLine
  2. CommandLineConfig
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CommandLine(spec: Reference, args: Array[String])
  2. new CommandLine(spec: Reference, line: String)
  3. new CommandLine(spec: Reference, originalArgs: List[String])

Value Members

  1. val Terminator: String
  2. val ValueForUnaryOption: String
  3. def apply(arg: String): String
  4. lazy val argMap: Map[String, String]

    argMap is option -> argument (or "true" if it is a unary argument) residualArgs are what is left after removing the options and their args.

  5. def enforceArity: Boolean
    Definition Classes
    CommandLineConfig
  6. def errorFn(msg: String): Unit
  7. def get(arg: String): Option[String]
  8. def getOrElse(arg: String, orElse: ⇒ String): String
  9. def isSet(arg: String): Boolean
  10. def mapForUnary(opt: String): Map[String, String]
  11. def onlyKnownOptions: Boolean
    Definition Classes
    CommandLineConfig
  12. val originalArgs: List[String]
  13. lazy val residualArgs: List[String]

    argMap is option -> argument (or "true" if it is a unary argument) residualArgs are what is left after removing the options and their args.

  14. val spec: Reference
  15. def toString(): String
    Definition Classes
    CommandLine → AnyRef → Any