Fix parsing of single args
This commit is contained in:
parent
044d24903c
commit
35dffad869
@ -31,7 +31,9 @@ class CommandParser(QObject):
|
|||||||
self.error.emit("{}: no such command".format(cmd))
|
self.error.emit("{}: no such command".format(cmd))
|
||||||
return
|
return
|
||||||
|
|
||||||
if obj.split_args:
|
if len(parts) == 1:
|
||||||
|
args = []
|
||||||
|
elif obj.split_args:
|
||||||
args = shlex.split(parts[1])
|
args = shlex.split(parts[1])
|
||||||
else:
|
else:
|
||||||
args = [parts[1]]
|
args = [parts[1]]
|
||||||
|
Loading…
Reference in New Issue
Block a user