From 21db0d509ed45162e9a46792a84ea0d094d138ab Mon Sep 17 00:00:00 2001 From: KV Date: Sun, 26 Jul 2020 00:22:19 +0200 Subject: [PATCH] Add CLI option -c that allows comparing Graphviz output also --- src/wireviz/build_examples.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wireviz/build_examples.py b/src/wireviz/build_examples.py index 7c3496e..01983c0 100755 --- a/src/wireviz/build_examples.py +++ b/src/wireviz/build_examples.py @@ -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)') @@ -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)