summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/cmd2.py b/cmd2.py
index 356f80f3..51432be4 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1030,13 +1030,7 @@ class Cmd(cmd.Cmd):
return self.default(statement)
if self.use_argument_list:
- lexed_arglist = shlex.split(statement, posix=POSIX_SHLEX)
- # If not using POSIX shlex, make sure to strip off outer quotes for convenience
- if not POSIX_SHLEX and STRIP_QUOTES_FOR_NON_POSIX:
- temp_arglist = []
- for arg in lexed_arglist:
- temp_arglist.append(strip_quotes(arg))
- lexed_arglist = temp_arglist
+ lexed_arglist = parse_quoted_string(cmdline)
stop = func(lexed_arglist)
else:
stop = func(statement)