Fix invalid argument count error
This commit is contained in:
parent
3e47c89bac
commit
90180509a2
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user