From 020d079b857eedff5722e470ce30abee03ade48f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 17 Jan 2014 07:06:49 +0100 Subject: [PATCH] Add error for invalid arg count --- qutebrowser/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/commands.py b/qutebrowser/commands.py index 97de17d28..95b8a95ed 100644 --- a/qutebrowser/commands.py +++ b/qutebrowser/commands.py @@ -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):