Skip to content

Commit

Permalink
Add CLI option -c that allows comparing Graphviz output also
Browse files Browse the repository at this point in the history
  • Loading branch information
kvid committed Jul 26, 2020
1 parent add227d commit 45122b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wireviz/build_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def parse_args():
parser.add_argument('action', nargs='?', action='store',
choices=['build','clean','compare','restore'], default='build',
help='what to do with the generated files (default: build)')
parser.add_argument('-c', '--compare-graphviz-output', action='store_true',
help='the Graphviz output is also compared (default: False)')
parser.add_argument('-g', '--groups', nargs='+',
choices=groups.keys(), default=groups.keys(),
help='the groups of generated files (default: all)')
Expand All @@ -138,7 +140,7 @@ def main():
elif args.action == 'clean':
clean_generated(args.groups)
elif args.action == 'compare':
compare_generated(args.groups)
compare_generated(args.groups, args.compare_graphviz_output)
elif args.action == 'restore':
restore_generated(args.groups)

Expand Down

0 comments on commit 45122b1

Please sign in to comment.