Fix invalid argument count error

This commit is contained in:
Florian Bruhin 2014-01-27 22:32:22 +01:00
parent 3e47c89bac
commit 90180509a2

View File

@ -63,7 +63,7 @@ class CommandParser(QObject):
try:
self.cmd.check(self.args)
except ArgumentCountError:
self.error.emit("{}: invalid argument count".format(self.cmd))
self.error.emit("{}: invalid argument count".format(self.cmd.mainname))
raise
def _run(self, count=None):