diff --git a/scripts/test-package-release.py b/scripts/test-package-release.py index 441992309..fbbe426d2 100644 --- a/scripts/test-package-release.py +++ b/scripts/test-package-release.py @@ -48,15 +48,17 @@ def push_changes(): def main(): parser = argparse.ArgumentParser(description="Remove a Git tag, add it if necessary, and push changes.") parser.add_argument("-tag", required=False, default=default_tag.format(default_package), help="The Git tag to remove and re-add.") - parser.add_argument("-package", required=True, default=default_package, help="The Git tag to remove and re-add.") + parser.add_argument("-package", required=False, default=default_package, help="The Git tag to remove and re-add.") args = parser.parse_args() + tag = default_tag.format(args.package) + # Remove the specified tag if it exists - remove_tag(args.tag) + remove_tag(tag) # Add (or re-add) the tag - add_tag(args.tag) + add_tag(tag) # Push remaining changes and all tags push_changes()