From 55d8b3133ffb7ff66be08edf99cd6341cf19792a Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Wed, 19 Jun 2024 16:34:03 +0200 Subject: [PATCH] Add option --force --- tagger | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tagger b/tagger index 4bb2c90..3353ec7 100755 --- a/tagger +++ b/tagger @@ -10,6 +10,7 @@ ap.add_argument("--fullyear", action="store_true") ap.add_argument("--day-always", action="store_true") ap.add_argument("--prefix", default="r") ap.add_argument("--noop", action="store_true") +ap.add_argument("--force", action="store_true") args = ap.parse_args() subprocess.run(["git", "pull"]) @@ -35,7 +36,7 @@ for ln in result.stdout.split("\n"): need_tag = True print(need_tag, found_tags) -if need_tag: +if need_tag or args.force: today = datetime.date.today() version = [] if args.fullyear: