diff options
-rw-r--r-- | qutebrowser/browser/commands.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 1707c398d..e2cef8003 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1353,6 +1353,12 @@ class CommandDispatcher: if command not in objects.commands: raise cmdutils.CommandError("Invalid command {}!".format( command)) + + deprecated = objects.commands[command].deprecated + if deprecated: + raise cmdutils.CommandError( + "{} is deprecated - {}".format(command, deprecated)) + path = 'commands.html#{}'.format(command) elif topic in configdata.DATA: path = 'settings.html#{}'.format(topic) |