From 3a1630b68763d0958c8932292ede400c8c621ad2 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 26 May 2022 23:01:23 +0200 Subject: [PATCH] Added force option to set-version --- tools/set_version/application.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/set_version/application.py b/tools/set_version/application.py index 83ea7b63..35948d7e 100644 --- a/tools/set_version/application.py +++ b/tools/set_version/application.py @@ -35,6 +35,11 @@ class Application(ApplicationABC): version = {} branch = "" suffix = "" + force = False + if '--force' in args: + args.remove('--force') + force = True + if len(args) > 1: Console.error(f'Unexpected argument(s): {", ".join(args[1:])}') return @@ -63,7 +68,7 @@ class Application(ApplicationABC): try: for project in self._workspace.projects: - if project not in diff_paths and String.convert_to_snake_case(project) not in diff_paths: + if project not in diff_paths and String.convert_to_snake_case(project) not in diff_paths and not force: Console.write_line(f'Skipping {project} due to missing changes') continue