From 5e06b004744fca8fc02a41c116345db6f650ded7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 27 Apr 2020 14:52:26 +0200 Subject: scripts: Add --commands to update_version --- doc/changelog.asciidoc | 2 +- scripts/dev/update_version.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 990848774..02d6e6422 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -32,7 +32,7 @@ Added * `hints.padding` to add additional padding for hints. * `hints.radius` to set a border radius for hints (set to `3` by default). - New placeholders for `url.searchengines` values: - * `{unquoted}` inserts the search term without any quoting + * `{unquoted}` inserts the search term without any quoting. * `{semiquoted}` (same as `{}`) quotes most special characters, but slashes remain unquoted. * `{quoted}` (same as `{}` in earlier releases) also quotes slashes. diff --git a/scripts/dev/update_version.py b/scripts/dev/update_version.py index f6cc2c27b..13bd3d776 100644 --- a/scripts/dev/update_version.py +++ b/scripts/dev/update_version.py @@ -52,11 +52,15 @@ if __name__ == "__main__": parser.add_argument('bump', action="store", choices=["major", "minor", "patch"], help="Update release version") + parser.add_argument('--commands', action="store_true", + help="Only show commands to run post-release.") args = parser.parse_args() utils.change_cwd() - bump_version(args.bump) - show_commit() + + if not args.commands: + bump_version(args.bump) + show_commit() import qutebrowser version = qutebrowser.__version__ -- cgit v1.2.3-54-g00ecf