We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50be31c commit a72c98dCopy full SHA for a72c98d
cmd2/cmd2.py
@@ -762,8 +762,10 @@ def _build_parser(
762
) -> argparse.ArgumentParser:
763
"""Build argument parser for a command/subcommand.
764
765
- :param parent: CommandParent object which owns the parser
766
- :param parser_builder: method used to build the parser
+ :param parent: CommandParent object which owns the command using the parser.
+ 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
769
:param prog: prog value to set in new parser
770
:return: new parser
771
:raises TypeError: if parser_builder is invalid type
0 commit comments