Skip to content

Commit

Permalink
Add mutually exclusive group
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Nov 14, 2024
1 parent df09403 commit a9e8da7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hera_librarian/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1749,12 +1749,14 @@ def config_set_librarian_transfer_subparser(sub_parsers):
sp.add_argument(
"--name", help="The name of the librarian to set the transfer state of."
)
sp.add_argument(

grp = sp.add_mutually_exclusive_group()
grp.add_argument(
"--enabled",
action="store_true",
help="Set the librarian to enabled for transfers.",
)
sp.add_argument(
grp.add_argument(
"--disabled",
action="store_true",
help="Set the librarian to disabled for transfers.",
Expand Down

0 comments on commit a9e8da7

Please sign in to comment.