diff options
author | kotfu <kotfu@kotfu.net> | 2018-04-29 10:00:54 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-04-29 10:00:54 -0600 |
commit | 975818feb4f24c25e84b3586cfe68230f1ac84f5 (patch) | |
tree | 96e0e845306d1f4cd67e3de4f60c593c272b445c /cmd2/parsing.py | |
parent | 85c63d41286e62460b3b80c465349a5a0476266c (diff) | |
download | cmd2-git-975818feb4f24c25e84b3586cfe68230f1ac84f5.tar.gz |
_command_and_args switched to static method
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r-- | cmd2/parsing.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 03937856..63766a8c 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -316,7 +316,8 @@ class StatementParser(): break return command - def _command_and_args(self, tokens: List[str]) -> Tuple[str, str]: + @staticmethod + def _command_and_args(tokens: List[str]) -> Tuple[str, str]: """given a list of tokens, and return a tuple of the command and the args as a string. """ |