Skip to content

Commit abdd76c

Browse files
committed
Updated comment.
1 parent 1dc7042 commit abdd76c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd2/decorators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)