Skip to content

Commit a72c98d

Browse files
committed
Updated comment
1 parent 50be31c commit a72c98d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd2/cmd2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,10 @@ def _build_parser(
762762
) -> argparse.ArgumentParser:
763763
"""Build argument parser for a command/subcommand.
764764
765-
:param parent: CommandParent object which owns the parser
766-
:param parser_builder: method used to build the parser
765+
:param parent: CommandParent object which owns the command using the parser.
766+
This function assumes that parent is where parser_builder
767+
is defined when parser_builder is a classmethod.
768+
:param parser_builder: means used to build the parser
767769
:param prog: prog value to set in new parser
768770
:return: new parser
769771
:raises TypeError: if parser_builder is invalid type

0 commit comments

Comments
 (0)