summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-02-03 19:24:01 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-02-03 19:25:45 +0100
commitcf570c22c6679e94f24ed52a653b3541479a3cdc (patch)
tree1a9a52b0cdc5628e522e854a412dfd5198e2f398
parent7bfd62ed0d087a54ab8746674ced3d66d5e650c5 (diff)
downloadqutebrowser-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).
-rw-r--r--doc/changelog.asciidoc3
-rw-r--r--qutebrowser/qutebrowser.py15
2 files changed, 11 insertions, 7 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc
index d7e0971b3..757a6bf28 100644
--- a/doc/changelog.asciidoc
+++ b/doc/changelog.asciidoc
@@ -60,6 +60,9 @@ Fixed
done by `open_url_in_instance.sh`, this would result in a partially initialized
window, causing a crash when interacted with (also in versions before v2.0.0).
Instead, the startpage is now shown properly.
+- The `--enable-webengine-inspector` flag is now accepted again, however it's
+ unused and undocumented. It purely exists to make it possible to use `:restart`
+ between pre-v2.0.x and v2.0.2 versions.
[[v2.0.1]]
v2.0.1 (2021-01-28)
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",