summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-16 21:46:58 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-16 21:46:58 -0400
commitf68023a219e4e5b0997e28d7cc4f46eb05011665 (patch)
tree25d17628c77cb1e06deb82589be362959e4b2257
parent0d592167fc74d7bc65ae4a0b58798b7f0ee396a8 (diff)
downloadcmd2-git-f68023a219e4e5b0997e28d7cc4f46eb05011665.tar.gz
Making parseline a bit closer to the orignal cmd version
-rwxr-xr-xcmd2.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd2.py b/cmd2.py
index 7ce6e5c0..28e22c45 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1582,11 +1582,6 @@ class Cmd(cmd.Cmd):
i += 1
command, arg = line[:i], line[i:].strip()
- # Make sure there is a space between the command and args
- # This can occur when a character not in self.identchars bumps against the command (ex: help@)
- if len(command) > 0 and len(arg) > 0 and line[len(command)] != ' ':
- line = line.replace(command, command + ' ', 1)
-
return command, arg, line
def onecmd_plus_hooks(self, line):