NumberArgOption
case class NumberArgOption(name: String, required: Boolean, descr: String, converter: ValueConverter[Long], validator: Any => Boolean, default: () => Option[Long], hidden: Boolean) extends CliOption
Descriptor for a number option (-1
or -3
, like GNU tail for example).
Descriptor for a number option (-1
or -3
, like GNU tail for example).
- Value Params
- converter
The converter for this option.
- default
If this argument is not required and not found in the argument list, use this value.
- descr
Description for this option, for help text.
- hidden
If set to true then this option will not be present in auto-generated help.
- name
Name for new definition, used for identification.
- required
Is this trailing argument required?
- validator
The function that validates the parsed value.