Parsed CLI arguments with structured access to options and positionals.
Constructors
Properties
-
args
→ Iterable<
Object?> -
Positional arguments with basic type coercion applied.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
rest
→ Iterable<
String> -
Positional arguments that were not parsed as options.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
value
→ Map<
String, Argv> -
The wrapped value.
finalinherited
Methods
-
as<
R> () → R -
Casts value to
R.inherited -
at(
String name) → Argv? - Looks up an option by name.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
safeAs<
R> () → R? -
Casts value to
Rif possible, otherwise returns null.inherited -
toJson(
) → Map< String, Object> -
Returns a JSON-friendly map representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String name) → Argv? - Shorthand for at.