From a487c3ce6fa5143135915f4ea9ab46057718a6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Wed, 18 Oct 2023 12:30:40 +0200 Subject: [PATCH] Make the arguments mutally exclusive --- .github/changelog-processor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/changelog-processor.py b/.github/changelog-processor.py index 7fc444965d..b005c620d8 100755 --- a/.github/changelog-processor.py +++ b/.github/changelog-processor.py @@ -12,13 +12,15 @@ default="CHANGELOG.md", nargs='?' ) -parser.add_argument( + +group = parser.add_mutually_exclusive_group() +group.add_argument( "--print-latest-version", dest="print_latest_version", help="Print the latest version (first in the file) found in the CHANGELOG.md", action="store_true" ) -parser.add_argument( +group.add_argument( "--should-release", dest="should_release", help="Should a release be made? Prints `1` or `0`.",