Add error for invalid arg count
This commit is contained in:
parent
cb0c2604f3
commit
020d079b85
@ -26,8 +26,8 @@ class CommandParser(QObject):
|
||||
try:
|
||||
obj.check(argv)
|
||||
except TypeError:
|
||||
# TODO
|
||||
raise
|
||||
self.error.emit("{}: invalid argument count".format(cmd))
|
||||
return
|
||||
obj.run(argv)
|
||||
|
||||
class Command(QObject):
|
||||
|
Loading…
Reference in New Issue
Block a user