ParseResult class cli

What Parser found in the user's arguments.

Constructors

ParseResult({required List<Command> commands, required Input input, required bool helpWanted, required bool versionWanted})
Creates a result. Normally only Parser does this.
const

Properties

command → Command
The command the user picked, which is the one to run.
no setter
commands → List<Command>
The picked commands from the top down, like [todo, add].
final
hashCode → int
The hash code for this object.
no setterinherited
helpWanted → bool
Whether the user asked for the help screen.
final
input → Input
The flags, options and leftover words, ready for run.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versionWanted → bool
Whether the user asked for the version.
final

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