SimpleOption

case class SimpleOption(name: String, short: Option[Char], descr: String, required: Boolean, converter: ValueConverter[_], default: () => Option[Any], validator: Any => Boolean, argName: String, hidden: Boolean, noshort: Boolean) extends CliOption

Descriptor for a simple option - describes flag, one-arg or multi-arg options (--opt [ARGS]...).

Descriptor for a simple option - describes flag, one-arg or multi-arg options (--opt [ARGS]...).

Value Params
argName

The name for this option argument, as it will appear in help.

converter

The converter for this option.

default

Default value to use if option is not found in input arguments.

descr

Description for this option, for help output.

hidden

Hides description of this option from help (this can be useful for debugging options).

name

Name for new option, used as long option name in parsing, and for option identification.

noshort

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

required

Is this option required?

short

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

validator

The function that validates the parsed value.

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 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

Inherited methods

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