From 24d79ca74b0cd41f9a1bbc32b1be76830de55042 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 15 Jan 2019 19:58:18 +0100 Subject: add license switch --- bench.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bench.py') diff --git a/bench.py b/bench.py index 93535b4..7927578 100755 --- a/bench.py +++ b/bench.py @@ -16,10 +16,16 @@ parser.add_argument("-ns", "--nosum", help="don't produce plots", action='store_ parser.add_argument("-sd", "--summarydir", help="directory where all plots and the summary go", type=str) parser.add_argument("-a", "--analyse", help="collect allocation sizes", action='store_true') parser.add_argument("--nolibmemusage", help="don't use libmemusage to analyse", action='store_true') +parser.add_argument("--license", help="print license info and exit", action='store_true') def main(): args = parser.parse_args() - print (args) + if args.license: + print("Copyright (C) 2018-1029 Florian Fischer") + print("License GPLv3: GNU GPL version 3 ") + return + if args.verbose: + print(args) if args.summarydir and not os.path.isdir(args.summarydir): os.makedirs(args.summarydir) -- cgit v1.2.3