diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-05 13:39:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 13:39:37 -0400 |
commit | 9fee6105210b36201b5d2edc610f20bd67eac9f2 (patch) | |
tree | 5879270409a4992622da2933275ccaae30525ee6 /cmd2/pyscript_bridge.py | |
parent | 49cbec9969b4b53248d6097d8f395d92c74f7228 (diff) | |
parent | 734796b895bb85d67c651d9e8e8bf71e7d60b7e3 (diff) | |
download | cmd2-git-9fee6105210b36201b5d2edc610f20bd67eac9f2.tar.gz |
Merge pull request #568 from python-cmd2/sub-command
Using sub-command instead of subcommand where possible to be consistent with argparse
Diffstat (limited to 'cmd2/pyscript_bridge.py')
-rw-r--r-- | cmd2/pyscript_bridge.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/pyscript_bridge.py b/cmd2/pyscript_bridge.py index a70a7ae6..2002ca6d 100644 --- a/cmd2/pyscript_bridge.py +++ b/cmd2/pyscript_bridge.py @@ -87,7 +87,7 @@ class ArgparseFunctor: return commands def __getattr__(self, item: str): - """Search for a subcommand matching this item and update internal state to track the traversal""" + """Search for a sub-command matching this item and update internal state to track the traversal""" # look for sub-command under the current command/sub-command layer for action in self.__current_subcommand_parser._actions: if not action.option_strings and isinstance(action, argparse._SubParsersAction): |