CliOptDef class
Class representing an option definition (parsed from an options definition string)
Constructors
- CliOptDef(String optDefStr, CliOptCaseMode caseMode)
- The constructor
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasManyValues ↔ bool
-
If true, then multiple values expected to follow (either as a delimited list or as separate arguments)
latefinal
- isFlag ↔ bool
-
If true, then the option is a flag (no value)
latefinal
- isNoValueAllowed ↔ bool
-
If true, then no value allowed (values are optional, useful for plain arguments)
latefinal
-
longNames
→ List<
String> -
List of long names
final
-
longSubNames
→ List<
String> -
List of long sub-names
final
- maxValueCount ↔ int
-
The highest number of values allowed
latefinal
- minValueCount ↔ int
-
The lowest number of values allowed
latefinal
- name ↔ String
-
The main option name (the last specified in the option definition)
latefinal
-
names
→ List<
String> -
List of names (either long or short)
final
-
negLongNames
→ List<
String> -
List of long names with the negation prefix
final
-
negLongSubNames
→ List<
String> -
List of long sub-names with the negation prefix
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shortNames
→ List<
String> -
List of short names
final
-
shortSubNames
→ List<
String> -
List of short sub-names
final
-
subNames
→ List<
String> -
List of sub-names (long or short)
final
- valueSeparator ↔ String
-
Delimiter for values passed as a single string
latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited