diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-01-27 23:30:40 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-01-27 23:31:45 +0100 |
| commit | 0c85f85904010e8ddf9653d16857a94ec40c1e7f (patch) | |
| tree | 775f2646712883f0aaca27de89a6ce4ebf0e060b /merge.py | |
| parent | eae8e1bf3d48beb5da48cb8f04df94a02c87bcb0 (diff) | |
| download | allocbench-0c85f85904010e8ddf9653d16857a94ec40c1e7f.tar.gz allocbench-0c85f85904010e8ddf9653d16857a94ec40c1e7f.zip | |
use argparse version action to print allocbench version
Diffstat (limited to 'merge.py')
| -rwxr-xr-x | merge.py | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -41,15 +41,12 @@ def main(): if "--license" in sys.argv: print_license_and_exit() - if "--version" in sys.argv: - print(src.facter.allocbench_version()) - sys.exit(0) - parser = argparse.ArgumentParser(description="Merge to allocbench results") parser.add_argument("src", help="results which should be merged into dest", type=str) parser.add_argument("dest", help="results in which src should be merged", type=str) parser.add_argument("--license", help="print license info and exit", action='store_true') - parser.add_argument("--version", help="print version info and exit", action='store_true') + parser.add_argument("--version", help="print version info and exit", action='version', + version=f"allocbench {src.facter.allocbench_version()}") parser.add_argument("-b", "--benchmarks", help="benchmarks to summarize", nargs='+') parser.add_argument("-x", "--exclude-benchmarks", help="benchmarks to exclude", nargs='+') |
