ArgResults class

The results of parsing a series of command line arguments using ArgParser.parse().

Includes the parsed options and any remaining unparsed command line arguments.

Properties

arguments → List<String>
The original list of arguments that were parsed.
final
command ArgResults
The command that was selected, or null if none was. [...]
final
name → String
If these are the results for parsing a command's options, this will be the name of the command. For top-level results, this returns null.
final
options → Iterable<String>
Get the names of the available options as an Iterable. [...]
read-only
rest → List<String>
The remaining command-line arguments that were not parsed as options or flags. [...]
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

wasParsed(String name) → bool
Returns true if the option with name was parsed from an actual argument. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator [](String name) → dynamic
Gets the parsed command-line option named name.
operator ==(dynamic other) → bool
The equality operator.
inherited