summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-26 20:21:52 -0600
committerkotfu <kotfu@kotfu.net>2018-04-26 20:21:52 -0600
commit739d3f42715e59b61432cd7fbedacae4a4f80a16 (patch)
treed138c0c890c9568d019decfdb631e29777f6c387 /cmd2/cmd2.py
parent05ee395f0d487fc67979ce3d0824bdaadff5c811 (diff)
downloadcmd2-git-739d3f42715e59b61432cd7fbedacae4a4f80a16.tar.gz
First stage of refactoring cmd2.parseline() for tab completion
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-xcmd2/cmd2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index cd80970b..89e07802 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -1588,6 +1588,11 @@ class Cmd(cmd.Cmd):
# Parse the command line
command, args, expanded_line = self.parseline(line)
+
+ # use these lines instead of the one above
+ # statement = self.command_parser.parse_command_only(line)
+ # command = statement.command
+ # expanded_line = statement.command_and_args
# We overwrote line with a properly formatted but fully stripped version
# Restore the end spaces since line is only supposed to be lstripped when