diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 97a5f38b1..fa77889d2 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -603,7 +603,7 @@ class CommandDispatcher: self.openurl(config.get('general', 'startpage')[0]) @cmdutils.register(instance='mainwindow.tabs.cmd') - def run_userscript(self, cmd, *args): + def run_userscript(self, cmd, *args : {'nargs': '*'}): """Run an userscript given as argument. Args: diff --git a/qutebrowser/commands/cmdutils.py b/qutebrowser/commands/cmdutils.py index 0b5e285b5..5f95e2114 100644 --- a/qutebrowser/commands/cmdutils.py +++ b/qutebrowser/commands/cmdutils.py @@ -308,7 +308,7 @@ class register: # pylint: disable=invalid-name kwargs['type'] = typ if param.kind == inspect.Parameter.VAR_POSITIONAL: - kwargs['nargs'] = '*' + kwargs['nargs'] = '+' elif typ is not bool and param.default is not inspect.Parameter.empty: kwargs['default'] = param.default kwargs['nargs'] = '?'