Arguments class
Constructors
-
Arguments(List<
String> args, {Map<String, dynamic> ? parameters, Set<String> ? flags, Map<String, String> ? abbreviations}) -
Arguments.parse(List<
String> args, {Set<String> ? flags, Map<String, String> ? abbreviations, bool caseSensitive = false}) -
Parses
args
.factory -
Arguments.parseLine(String argsLine, {Set<
String> ? flags, Map<String, String> ? abbreviations, bool caseSensitive = false}) -
Parses
argsLine
.factory
Properties
-
abbreviations
↔ Map<
String, String> -
The abbreviations used to parse.
getter/setter pair
-
args
↔ List<
String> -
The positional arguments.
getter/setter pair
-
flags
↔ Set<
String> -
The flags (keys with
--
prefixes and no values).getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
-
keysAbbreviations
→ Map<
String, String> -
The keys abbreviations.
no setter
-
parameters
↔ Map<
String, dynamic> -
The parameters (keys with
--
prefixes).getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArgumentsLine(
{bool abbreviateFlags = true, bool abbreviateParameters = false}) → String - Converts this instances to a String line.
-
toArgumentsList(
{bool abbreviateFlags = true, bool abbreviateParameters = false}) → List< String> -
Converts this instances to a
String
line. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
splitArgumentsLine(
String argsLine) → List< String> -
Splits
argsLine
to a List.