From 659d1660b3d0435eaaabfbf74ab49bea7636da10 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Thu, 30 Jul 2020 20:08:05 -0400 Subject: Updated documentation --- cmd2/argparse_custom.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmd2') diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py index 80213bf8..4c417a6d 100644 --- a/cmd2/argparse_custom.py +++ b/cmd2/argparse_custom.py @@ -197,6 +197,10 @@ See _get_nargs_pattern_wrapper for more details. ``argparse.ArgumentParser._match_argument`` - adds support for nargs ranges. See _match_argument_wrapper for more details. + +``argparse._SubParsersAction.remove_parser`` - new function which removes a +sub-parser from a sub-parsers group. See _SubParsersAction_remove_parser for +more details. """ import argparse @@ -534,7 +538,7 @@ argparse.ArgumentParser._match_argument = _match_argument_wrapper ############################################################################################################ def _SubParsersAction_remove_parser(self, name): - """Removes a sub-parser from the sub-parsers group""" + """Removes a sub-parser from a sub-parsers group""" for choice_action in self._choices_actions: if choice_action.dest == name: self._choices_actions.remove(choice_action) -- cgit v1.2.1