addCommand method
Defines a command.
A command is a named argument which may in turn define its own options and
subcommands using the given parser. If parser
is omitted, implicitly
creates a new one. Returns the parser for the command.
Note that adding commands this way will not impact the usage string. To
add commands which are included in the usage string see CommandRunner
.
Implementation
@override
ArgParser addCommand(String name, [ArgParser? parser]) =>
_argParser.addCommand(name, parser);