CliOpt class
Class representing actual command-line option with arguments retrieved from the parsed arguments
Properties
- argNo → int
-
The first index in the list of the actual arguments
Is relevant to the first argument containing that option name
This includes plain arguments as values of an option with empty
name (useful when the order of options matters)
final
- fullName ↔ String
-
Option full name (if this is an option, should contain prefix)
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- optDef → CliOptDef
-
Reference to an option definintion (if found)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ List<
String> -
Value attached to the last option
final
Methods
-
addValue(
String? value) → int - Adding values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Standard serializer
override
-
validateValueCount(
) → void - Validating value count
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited