Add option --force

This commit is contained in:
Peter J. Holzer 2024-06-19 16:34:03 +02:00 committed by Peter J. Holzer
parent 033f882dca
commit 55d8b3133f
1 changed files with 2 additions and 1 deletions

3
tagger
View File

@ -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: