Fix invalid argument count error
This commit is contained in:
parent
3e47c89bac
commit
90180509a2
@ -63,7 +63,7 @@ class CommandParser(QObject):
|
|||||||
try:
|
try:
|
||||||
self.cmd.check(self.args)
|
self.cmd.check(self.args)
|
||||||
except ArgumentCountError:
|
except ArgumentCountError:
|
||||||
self.error.emit("{}: invalid argument count".format(self.cmd))
|
self.error.emit("{}: invalid argument count".format(self.cmd.mainname))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def _run(self, count=None):
|
def _run(self, count=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user