Fix parsing of single args

This commit is contained in:
Florian Bruhin 2014-01-20 08:36:36 +01:00
parent 044d24903c
commit 35dffad869

View File

@ -31,7 +31,9 @@ class CommandParser(QObject):
self.error.emit("{}: no such command".format(cmd))
return
if obj.split_args:
if len(parts) == 1:
args = []
elif obj.split_args:
args = shlex.split(parts[1])
else:
args = [parts[1]]