Skip to content

Commit 146aa42

Browse files
committed
Fixed comment.
1 parent 68ddd22 commit 146aa42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd2/decorators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ def as_subcommand_to(
450450
:param subcommand: Subcommand name
451451
:param parser: argparse Parser for this subcommand
452452
:param help: Help message for this subcommand which displays in the list of subcommands of the command we are adding to.
453-
This is passed as the help argument to ArgumentParser.add_subparser().
453+
This is passed as the help argument to subparsers.add_parser().
454454
:param aliases: Alternative names for this subcommand. This is passed as the alias argument to
455-
ArgumentParser.add_subparser().
455+
subparsers.add_parser().
456456
:return: Wrapper function that can receive an argparse.Namespace
457457
"""
458458

@@ -462,7 +462,7 @@ def arg_decorator(func: ArgparseCommandFunc[CommandParent]) -> ArgparseCommandFu
462462
setattr(func, constants.CMD_ATTR_ARGPARSER, parser)
463463
setattr(func, constants.SUBCMD_ATTR_NAME, subcommand)
464464

465-
# Keyword arguments for ArgumentParser.add_subparser()
465+
# Keyword arguments for subparsers.add_parser()
466466
add_parser_kwargs: Dict[str, Any] = dict()
467467
if help is not None:
468468
add_parser_kwargs['help'] = help

0 commit comments

Comments
 (0)