Skip to content

Commit

Permalink
Make --json and --html arguments mutually exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejboczar committed Jan 9, 2023
1 parent 173eac7 commit bdecfdd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions elf_size_analyze/argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ def parse_args():
help='print only files (to be used with cumulative size enabled)')
printing_group.add_argument('-a', '--alternating-colors', action='store_true',
help='use alternating colors when printing symbols')
printing_group.add_argument('-j', '--json', action='store_true',
printing_group.add_argument('-c', '--css',
help='path to custom css for HTML output')

output_type = printing_group.add_mutually_exclusive_group()
output_type.add_argument('-j', '--json', action='store_true',
help='create json output')
printing_group.add_argument('-W', '--html', action='store_true',
output_type.add_argument('-W', '--html', action='store_true',
help='create HTML output')
printing_group.add_argument('-c', '--css',
help='path to custom css for HTML output')

printing_group.add_argument('--no-demangle', action='store_true',
help='disable demangling of C++ symbol names')
Expand Down

0 comments on commit bdecfdd

Please sign in to comment.