Skip to content

Commit f9157fd

Browse files
committed
Updated docstrings.
1 parent 727b80d commit f9157fd

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cmd2/argparse_custom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,8 @@ def _SubParsersAction_add_existing_parser( # noqa: N802
10051005
:param self: instance of the _SubParsersAction being edited
10061006
:param name: name of the subcommand to add
10071007
:param subcmd_parser: the parser for this new subcommand
1008-
:param add_parser_kwargs: registration-specific kwargs for add_parser() (e.g. help, aliases, deprecated)
1008+
:param add_parser_kwargs: registration-specific kwargs for add_parser()
1009+
(e.g. help, aliases, deprecated [Python 3.13+])
10091010
"""
10101011
# Use add_parser to register the subcommand name and any aliases
10111012
self.add_parser(name, **add_parser_kwargs)

cmd2/decorators.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ def as_subcommand_to(
364364
This is passed as the help argument to subparsers.add_parser().
365365
:param aliases: Alternative names for this subcommand. This is passed as the alias argument to
366366
subparsers.add_parser().
367-
:param add_parser_kwargs: other registration-specific kwargs for add_parser() (e.g. deprecated)
367+
:param add_parser_kwargs: other registration-specific kwargs for add_parser()
368+
(e.g. deprecated [Python 3.13+])
368369
:return: Wrapper function that can receive an argparse.Namespace
369370
"""
370371

0 commit comments

Comments
 (0)