ArgParser

object ArgParser
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

case class CommandInfo(name: String, action: Seq[String] => Unit, description: String)
case object EarlyExit extends Result

Parsing signalled an early exit. This means that there wasn't an error, but that not all agruments were parsed, as one of them requested an early exit. Arguments are not available.

Parsing signalled an early exit. This means that there wasn't an error, but that not all agruments were parsed, as one of them requested an early exit. Arguments are not available.

case object Error extends Result

There was an error during parsing. Arguments are not available.

There was an error during parsing. Arguments are not available.

case class ParamInfo(isNamed: Boolean, names: Seq[String], isFlag: Boolean, repeats: Boolean, env: Option[String], description: String, completer: Completer, showDefault: Option[() => String])

User-friendly parameter information, used for generating help message

User-friendly parameter information, used for generating help message

class Reporter
sealed trait Result
case object Success extends Result

Parsing succeeded. Arguments are available.

Parsing succeeded. Arguments are available.

Types

type Completer = String => Seq[String]

Value members

Concrete methods

def apply(prog: String, description: String, version: String, reporter: Reporter, env: Map[String, String]): ArgParser
def wrap(in: String, out: StringBuilder, width: Int, newLine: String): Unit

Concrete fields

val NoCompleter: String => Seq[Nothing]