Skip to content

Commit

Permalink
Make the arguments mutally exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Oct 18, 2023
1 parent 4c159f5 commit a487c3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/changelog-processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.",
Expand Down

0 comments on commit a487c3c

Please sign in to comment.