From dc7e7b9ab1006e7f1dab5414e45fc58a54ec0274 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Sun, 2 Jun 2024 15:13:29 -0500 Subject: [PATCH] Added -u/--use to summary.py This is equivalent to just omitting the flag, but makes it a bit easier to switch between summary.py and more specific scripts such as code.py, where -u/--use is needed to operate on csv files. --- scripts/summary.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/summary.py b/scripts/summary.py index e65347f8..17b54d79 100755 --- a/scripts/summary.py +++ b/scripts/summary.py @@ -648,6 +648,10 @@ def main(csv_paths, *, file=sys.stderr) sys.exit(-1) + # use is just an alias + if args.get('use'): + csv_paths = csv_paths + [args['use']] + # find CSV files fields_, results = collect(csv_paths, renames, defines) @@ -741,6 +745,9 @@ if __name__ == "__main__": parser.add_argument( '-o', '--output', help="Specify CSV file to store results.") + parser.add_argument( + '-u', '--use', + help="Don't parse anything, use this CSV file.") parser.add_argument( '-d', '--diff', help="Specify CSV file to diff against.")