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 with Product with Serializable
Descriptor for a simple option - describes flag, one-arg or multi-arg options (--opt [ARGS]...).
- name
Name for new option, used as long option name in parsing, and for option identification.
- short
Overload the char that will be used as short option name.
- descr
Description for this option, for help output.
- required
Is this option required?
- converter
The converter for this option.
- default
Default value to use if option is not found in input arguments.
- validator
The function that validates the parsed value.
- argName
The name for this option argument, as it will appear in help.
- hidden
Hides description of this option from help (this can be useful for debugging options).
- noshort
If set to true, then this option does not have any short name.
- Source
- CliOptions.scala
- Alphabetic
- By Inheritance
- SimpleOption
- Serializable
- Product
- Equals
- CliOption
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SimpleOption(name: String, short: Option[Char], descr: String, required: Boolean, converter: ValueConverter[_], default: () => Option[Any], validator: (Any) => Boolean, argName: String, hidden: Boolean, noshort: Boolean)
- name
Name for new option, used as long option name in parsing, and for option identification.
- short
Overload the char that will be used as short option name.
- descr
Description for this option, for help output.
- required
Is this option required?
- converter
The converter for this option.
- default
Default value to use if option is not found in input arguments.
- validator
The function that validates the parsed value.
- argName
The name for this option argument, as it will appear in help.
- hidden
Hides description of this option from help (this can be useful for debugging options).
- noshort
If set to true, then this option does not have any short name.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def argLine(sh: List[Char]): String
The line that would be printed as definition of this arg in help output.
The line that would be printed as definition of this arg in help output.
- Definition Classes
- SimpleOption → CliOption
- val argName: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val converter: ValueConverter[_]
Converter for pure string arguments to the needed type of this option.
Converter for pure string arguments to the needed type of this option.
- Definition Classes
- SimpleOption → CliOption
- val default: () => Option[Any]
Function that provides an optional default value for this option.
Function that provides an optional default value for this option.
- Definition Classes
- SimpleOption → CliOption
- val descr: String
Description for this option that will be presented to the user
Description for this option that will be presented to the user
- Definition Classes
- SimpleOption → CliOption
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def helpInfo(sh: List[Char]): List[HelpInfo]
List of argument lines, descriptions to them, and optional default values.
List of argument lines, descriptions to them, and optional default values.
- Definition Classes
- SimpleOption → CliOption
- val hidden: Boolean
If true, then this option is not shown in help output.
If true, then this option is not shown in help output.
- Definition Classes
- SimpleOption → CliOption
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPositional: Boolean
True for trailing argument option type, false for everything else.
True for trailing argument option type, false for everything else.
- Definition Classes
- SimpleOption → CliOption
- def longNames: List[String]
Long names for this option.
Long names for this option.
- Definition Classes
- SimpleOption → CliOption
- val name: String
Internal name of this option - the one that would be used to access parsed values.
Internal name of this option - the one that would be used to access parsed values.
- Definition Classes
- SimpleOption → CliOption
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noshort: Boolean
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val required: Boolean
Is there a requirement to have at least one invocation of this option?
Is there a requirement to have at least one invocation of this option?
- Definition Classes
- SimpleOption → CliOption
- def requiredShortNames: List[Char]
Short names that were explicitly set for this option.
Short names that were explicitly set for this option.
- Definition Classes
- SimpleOption → CliOption
- val short: Option[Char]
- def shortNames: List[Char]
Short names that are suggested by option implementation.
Short names that are suggested by option implementation.
- Definition Classes
- SimpleOption → CliOption
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- SimpleOption → AnyRef → Any
- val validator: (Any) => Boolean
Validator for the option value.
Validator for the option value.
- Definition Classes
- SimpleOption → CliOption
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()