subcommands property

  1. @override
List<Command<OptionDefinition, T>> get subcommands

The sibling commands of this help command, i.e. the commands it can show help for (including itself, i.e. help help), wrapped so that help <command> shows usage.

Implementation

@override
List<Command<OptionDefinition, T>> get subcommands => [
  ..._helpSubcommands(
    this,
    parent.subcommands.whereNot((final command) => command.name == name),
  ),
  _HelpSubcommand(parent: this, subcommand: this),
];