ActionOptionMixin<V> mixin
ActionOptionMixin can be added to an option definition to make CommandRunner run it as an "action option" when it is specified on the command line.
As a convenience, access the full option object via the inherited option getter.
- Implemented types
- Mixin applications
- Available extensions
Properties
- acceptsPartialCommandLine → bool
-
Whether this action option accepts a partial command line,
i.e. runs even if the command line is incomplete.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
option
→ ConfigOptionBase<
V> -
no setterinherited
- 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
-
qualifiedString(
) → String -
Available on OptionDefinition, provided by the QualifiedString extension
-
run<
O extends OptionDefinition, R> (CommandContext< O, R> context) → FutureOr<R?> -
Runs this action option.
contextis the context of the command that defined this action option. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited