Skip to content

Commit

Permalink
Use a mutex group for tel-diff / json
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Feb 15, 2024
1 parent 8c8b7a0 commit b2d8b69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/eventio/scripts/print_simtel_metaparams.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
parser = ArgumentParser(formatter_class=ArgumentDefaultsHelpFormatter)
parser.add_argument('inputfile')
parser.add_argument('--encoding', default='utf8', help='Encoding to use for decoding METAPARAMs')
parser.add_argument('--tel-diff', nargs=2, type=int)
parser.add_argument("--json", action="store_true", help="output as json")

group = parser.add_mutually_exclusive_group()
group.add_argument('--tel-diff', nargs=2, type=int)
group.add_argument("--json", action="store_true", help="output as json")


def print_metaparams():
Expand Down

0 comments on commit b2d8b69

Please sign in to comment.