CommandBuilder class
Declares the options and flags of a LiveCommand.
Mirrors the CommandBuilder used by Metro commands. It only records the
schema; Metro does the parsing on your machine.
Constructors
Properties
Methods
-
addFlag(
String name, {String? abbr, String? help, bool defaultValue = false}) → CommandBuilder -
Add a flag (
--flagor-f). -
addOption(
String name, {String? abbr, String? help, List< String> ? allowed, String? defaultValue}) → CommandBuilder -
Add an option (
--option valueor-o value). -
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