File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -360,9 +360,9 @@ def as_subcommand_to(
360360 :param subcommand: Subcommand name
361361 :param parser: instance of Cmd2ArgumentParser or a callable that returns a Cmd2ArgumentParser for this subcommand
362362 :param help: Help message for this subcommand which displays in the list of subcommands of the command we are adding to.
363- This is passed as the help argument to subparsers.add_parser().
364- :param aliases: Alternative names for this subcommand. This is passed as the alias argument to
365- subparsers.add_parser().
363+ If not None, this is passed as the ' help' argument to subparsers.add_parser().
364+ :param aliases: Alternative names for this subcommand. If a non-empty sequence is provided, it is passed
365+ as the 'aliases' argument to subparsers.add_parser().
366366 :param add_parser_kwargs: other registration-specific kwargs for add_parser()
367367 (e.g. deprecated [Python 3.13+])
368368 :return: a decorator which configures the target function to be a subcommand handler
You can’t perform that action at this time.
0 commit comments