CliOptParser class

Class to parse command-line arguments as options and their values

Constructors

CliOptParser(String optDefStr, CliOptCaseMode caseMode, {bool validate = false})
The constructor: breaks input string into option definitions and optionally validates all option and sub-option names

Properties

argOptDef CliOptDef?
Points to the plain arguments option definintion
latefinal
caseMode CliOptCaseMode
Describes when to convert to lower case
final
hashCode int
The hash code for this object.
no setterinherited
longNames List<String>
List of long names of all option definitions
latefinal
longSubNames List<String>
List of long sub-names of all option definitions
latefinal
negLongNames List<String>
List of negative long names of all option definitions
latefinal
negLongSubNames List<String>
List of negative long sub-names of all option definitions
latefinal
optDefs List<CliOptDef>
List of all option definintions
latefinal
parsed List<CliOpt>
List of all unbundled arguments with extra info
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortNames List<String>
List of short names of all option definitions
latefinal
shortSubNames List<String>
List of short sub-names of all option definitions
latefinal

Methods

exec(List<String> args) List<CliOpt>
The actual parser
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

Constants

maxArgCount → const int
Maximum possible number of arguments