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.