OptionSpec
constructor(names: List<String>, converter: Converter<*>, help: String = "", required: Boolean = false, default: Any? = null, multiple: Boolean = false)
Parameters
names
the option's names, primary first, for example ["--count", "-c"].
converter
converts each raw value to the typed result.
help
help text for --help.
required
whether at least one occurrence must be supplied.
default
the already-converted value used when a single-valued option is absent.
multiple
when true repeats accumulate into a list; when false a second occurrence is an ArgotParseException.DuplicateValue.