From 734796b895bb85d67c651d9e8e8bf71e7d60b7e3 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Fri, 5 Oct 2018 13:32:04 -0400 Subject: Using sub-command instead of subcommand where possible to be consistent with argparse --- cmd2/pyscript_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2/pyscript_bridge.py') 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): -- cgit v1.2.1