forked from Imagelibrary/littlefs
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.
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user