diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-x | cmd2/cmd2.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index ad2038d4..db4cef2e 100755 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1577,12 +1577,9 @@ class Cmd(cmd.Cmd): if begidx > 0: # 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 + statement = self.statement_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 |