ToggleOption

case class ToggleOption(name: String, default: () => Option[Boolean], short: Option[Char], noshort: Boolean, prefix: String, descrYes: String, descrNo: String, required: Boolean, hidden: Boolean) extends CliOption

Descriptor for a toggle option (like --verbose/--noverbose).

Descriptor for a toggle option (like --verbose/--noverbose).

Value Params
default

Default value for this option.

descrNo

Description for negative variant of this option.

descrYes

Description for positive variant of this option.

hidden

If set to true, then this option will not be present in auto-generated help.

name

Name of this option.

noshort

If set to true, then this option will not have any short name.

prefix

Prefix to name of the option, that will be used for "negative" version of the option.

required

Is this option required?

short

Overload the char that will be used as short option name.

trait Serializable
trait Product
trait Equals
trait CliOption
class Object
trait Matchable
class Any

Value members

Concrete methods

def argLine(sh: List[Char]): String
def converter: ValueConverter[Boolean]
def descr: String
def helpInfo(sh: List[Char]): List[HelpInfo]
def isPositional: Boolean
def longNames: List[String]
def requiredShortNames: List[Char]
def shortNames: List[Char]
override def toString: String
Definition Classes
Any
def validator: Any => Boolean

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product