diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-02-03 19:24:01 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-02-03 19:25:45 +0100 |
commit | cf570c22c6679e94f24ed52a653b3541479a3cdc (patch) | |
tree | 1a9a52b0cdc5628e522e854a412dfd5198e2f398 /qutebrowser/qutebrowser.py | |
parent | 7bfd62ed0d087a54ab8746674ced3d66d5e650c5 (diff) | |
download | qutebrowser-cf570c22c6679e94f24ed52a653b3541479a3cdc.tar.gz qutebrowser-cf570c22c6679e94f24ed52a653b3541479a3cdc.zip |
Fix minor argument parsing issues
- Move desktop-file-name before special arguments.
- Set action=store_true to not expect an argument for
temp-basedir-restarted (didn't lead to a bug as it's only passed via
--json-args).
Diffstat (limited to 'qutebrowser/qutebrowser.py')
-rw-r--r-- | qutebrowser/qutebrowser.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/qutebrowser/qutebrowser.py b/qutebrowser/qutebrowser.py index cf3e7497e..64c175293 100644 --- a/qutebrowser/qutebrowser.py +++ b/qutebrowser/qutebrowser.py @@ -82,9 +82,16 @@ def get_argparser(): "qutebrowser instance running.") parser.add_argument('--backend', choices=['webkit', 'webengine'], help="Which backend to use.") + parser.add_argument('--desktop-file-name', + default="org.qutebrowser.qutebrowser", + help="Set the base name of the desktop entry for this " + "application. Used to set the app_id under Wayland. See " + "https://doc.qt.io/qt-5/qguiapplication.html#desktopFileName-prop") parser.add_argument('--json-args', help=argparse.SUPPRESS) - parser.add_argument('--temp-basedir-restarted', help=argparse.SUPPRESS) + parser.add_argument('--temp-basedir-restarted', + help=argparse.SUPPRESS, + action='store_true') # WORKAROUND to be able to restart from older qutebrowser versions into this one. # Should be removed at some point. @@ -92,12 +99,6 @@ def get_argparser(): help=argparse.SUPPRESS, action='store_true') - parser.add_argument('--desktop-file-name', - default="org.qutebrowser.qutebrowser", - help="Set the base name of the desktop entry for this " - "application. Used to set the app_id under Wayland. See " - "https://doc.qt.io/qt-5/qguiapplication.html#desktopFileName-prop") - debug = parser.add_argument_group('debug arguments') debug.add_argument('-l', '--loglevel', dest='loglevel', help="Override the configured console loglevel", |