OParserBuilder

replpp.shaded.scopt.OParserBuilder
abstract class OParserBuilder[C]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def arg[A : Read](name: String): OParser[A, C]

adds an argument invoked by an option without - or --.

adds an argument invoked by an option without - or --.

Value parameters

name

name in the usage text

Attributes

def checkConfig(f: C => Either[String, Unit]): OParser[Unit, C]

adds final check.

adds final check.

Attributes

def cmd(name: String): OParser[Unit, C]

adds a command invoked by an option without - or --.

adds a command invoked by an option without - or --.

Value parameters

name

name of the command

Attributes

def failure(msg: String): Either[String, Unit]

call this to express failure in custom validation.

call this to express failure in custom validation.

Attributes

def head(xs: String*): OParser[Unit, C]

adds usage text.

adds usage text.

Attributes

def help(name: String): OParser[Unit, C]

adds an option invoked by --name that displays usage text and exits.

adds an option invoked by --name that displays usage text and exits.

Value parameters

name

name of the option

Attributes

def help(x: Char, name: String): OParser[Unit, C]

adds an option invoked by -x or --name that displays usage text and exits.

adds an option invoked by -x or --name that displays usage text and exits.

Value parameters

name

name of the option

x

name of the short option

Attributes

protected def makeDef[A : Read](kind: OptionDefKind, name: String): OptionDef[A, C]
def note(x: String): OParser[Unit, C]

adds usage text.

adds usage text.

Attributes

def opt[A : Read](name: String): OParser[A, C]

adds an option invoked by --name x.

adds an option invoked by --name x.

Value parameters

name

name of the option

Attributes

def opt[A : Read](x: Char, name: String): OParser[A, C]

adds an option invoked by -x value or --name value.

adds an option invoked by -x value or --name value.

Value parameters

name

name of the option

x

name of the short option

Attributes

def programName(x: String): OParser[Unit, C]
def success: Either[String, Unit]

call this to express success in custom validation.

call this to express success in custom validation.

Attributes

def version(name: String): OParser[Unit, C]

adds an option invoked by --name that displays header text and exits.

adds an option invoked by --name that displays header text and exits.

Value parameters

name

name of the option

Attributes

def version(x: Char, name: String): OParser[Unit, C]

adds an option invoked by -x or --name that displays header text and exits.

adds an option invoked by -x or --name that displays header text and exits.

Value parameters

name

name of the option

x

name of the short option

Attributes

protected def wrap[A](d: OptionDef[A, C]): OParser[A, C]