classorg.draftcode.argot
FlagSpec
A named boolean parameter whose presence means true.
Constructors
FlagSpec
FlagSpec(names: List<String>, help: String, negationNames: List<String>, default: Boolean)
- names
the flag's names, primary first, for example
["--verbose", "-v"].- help
help text for
--help.- negationNames
names that set the flag to
false, for example["--no-verbose"].- default
the value used when neither a name nor a negation name is present.
Properties
primaryName
val primaryName: String
The first of names, used as the lookup key in ParsedValues.