From c47da15bb143f889ad703172194cb21cf6ae9de0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 11 Apr 2017 21:26:23 +0200 Subject: [PATCH] Remove nargs=1 for --debug-flag Otherwisse we get [['foo'], ['bar']] from argparse... --- qutebrowser/qutebrowser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/qutebrowser.py b/qutebrowser/qutebrowser.py index 4a73c1162..cd9ec5938 100644 --- a/qutebrowser/qutebrowser.py +++ b/qutebrowser/qutebrowser.py @@ -116,7 +116,7 @@ def get_argparser(): nargs=1, action='append') debug.add_argument('--debug-flag', type=debug_flag_error, default=[], help="Pass name of debugging feature to be turned on.", - nargs=1, action='append', dest='debug_flags') + action='append', dest='debug_flags') parser.add_argument('command', nargs='*', help="Commands to execute on " "startup.", metavar=':command') # URLs will actually be in command