Skip to content

Commit

Permalink
Merge pull request #34 from palfrey/mutual-exclusion-list
Browse files Browse the repository at this point in the history
Can't list all both long _and_ scored
  • Loading branch information
koiuo authored Jun 4, 2023
2 parents e5e57f1 + 50c0510 commit 0740cb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions randrctl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ def args_parser():

# list
command_list = commands_parsers.add_parser(LIST, help='list available profiles')
command_list.add_argument('-l', action='store_const', const=True, default=False,
group = command_list.add_mutually_exclusive_group()
group.add_argument('-l', action='store_const', const=True, default=False,
help='long listing', dest='long_listing')
command_list.add_argument('-s', action='store_const', const=True, default=False,
group.add_argument('-s', action='store_const', const=True, default=False,
help='scored listing', dest='scored_listing')

# dump
Expand Down

0 comments on commit 0740cb9

Please sign in to comment.