addSubcommand method
Adds a subcommand to this command.
Throws a StateError if subcommand already has a parent command.
Implementation
void addSubcommand(final Command<OptionDefinition, T> subcommand) {
subcommand.parent = this;
_subcommands.add(subcommand);
}