Skip to content

Commit 693d700

Browse files
committed
Updated comment.
1 parent 822bf1a commit 693d700

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd2/argparse_custom.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,8 @@ def _SubParsersAction_add_existing_parser( # noqa: N802
10031003
This function is added by cmd2 as a method called ``add_existing_parser()``
10041004
to ``argparse._SubParsersAction`` class.
10051005
1006+
To call: ``action.add_existing_parser(name, subcmd_parser, **add_parser_kwargs)``
1007+
10061008
:param self: instance of the _SubParsersAction being edited
10071009
:param name: name of the subcommand to add
10081010
:param subcmd_parser: the parser for this new subcommand

0 commit comments

Comments
 (0)