summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-08-04 11:56:57 -0400
committeranselor <anselor@gmail.com>2020-08-04 13:38:08 -0400
commit4c0bdad9acd578536436246023ae884755089040 (patch)
treecd5e9a4f296982ff870f12023e38a6edd6954d51 /cmd2/argparse_custom.py
parent2d24953c71f8e850b5925c3923cbb596de4b0813 (diff)
downloadcmd2-git-4c0bdad9acd578536436246023ae884755089040.tar.gz
Minor formatting fixes. Injecting a function into namespace objects before passing to command handlers to access sub-command handlers
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r--cmd2/argparse_custom.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index e08db005..5dbb9f66 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -584,7 +584,6 @@ def _SubParsersAction_remove_parser(self, name: str):
del self.choices[name]
-
# noinspection PyProtectedMember
setattr(argparse._SubParsersAction, 'remove_parser', _SubParsersAction_remove_parser)