Skip to content

Commit f0b1bb5

Browse files
committed
Merge branch 'master' into 3.0.0
2 parents 69ebe64 + 146aa42 commit f0b1bb5

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
@@ -415,9 +415,9 @@ def as_subcommand_to(
415415
:param subcommand: Subcommand name
416416
:param parser: argparse Parser for this subcommand
417417
:param help: Help message for this subcommand which displays in the list of subcommands of the command we are adding to.
418-
This is passed as the help argument to ArgumentParser.add_subparser().
418+
This is passed as the help argument to subparsers.add_parser().
419419
:param aliases: Alternative names for this subcommand. This is passed as the alias argument to
420-
ArgumentParser.add_subparser().
420+
subparsers.add_parser().
421421
:return: Wrapper function that can receive an argparse.Namespace
422422
"""
423423

@@ -427,7 +427,7 @@ def arg_decorator(func: ArgparseCommandFunc[CommandParent]) -> ArgparseCommandFu
427427
setattr(func, constants.CMD_ATTR_ARGPARSER, parser)
428428
setattr(func, constants.SUBCMD_ATTR_NAME, subcommand)
429429

430-
# Keyword arguments for ArgumentParser.add_subparser()
430+
# Keyword arguments for subparsers.add_parser()
431431
add_parser_kwargs: Dict[str, Any] = dict()
432432
if help is not None:
433433
add_parser_kwargs['help'] = help

0 commit comments

Comments
 (0)