Add error for invalid arg count

This commit is contained in:
Florian Bruhin 2014-01-17 07:06:49 +01:00
parent cb0c2604f3
commit 020d079b85

View File

@ -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):