Skip to content

Commit 659d166

Browse files
kmvanbruntanselor
authored andcommitted
Updated documentation
1 parent bcd5c08 commit 659d166

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd2/argparse_custom.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ def my_completer_method(self, text, line, begidx, endidx, arg_tokens)
197197
198198
``argparse.ArgumentParser._match_argument`` - adds support for nargs ranges.
199199
See _match_argument_wrapper for more details.
200+
201+
``argparse._SubParsersAction.remove_parser`` - new function which removes a
202+
sub-parser from a sub-parsers group. See _SubParsersAction_remove_parser for
203+
more details.
200204
"""
201205

202206
import argparse
@@ -534,7 +538,7 @@ def _match_argument_wrapper(self, action, arg_strings_pattern) -> int:
534538
############################################################################################################
535539

536540
def _SubParsersAction_remove_parser(self, name):
537-
"""Removes a sub-parser from the sub-parsers group"""
541+
"""Removes a sub-parser from a sub-parsers group"""
538542
for choice_action in self._choices_actions:
539543
if choice_action.dest == name:
540544
self._choices_actions.remove(choice_action)

0 commit comments

Comments
 (0)