From ede6aadc4b8bb6d1af2a5abe0cb1174e8fcc69dd Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 8 Apr 2020 15:40:23 +0200 Subject: add simple interactive summary support --- summarize.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'summarize.py') diff --git a/summarize.py b/summarize.py index 46ca999..ca1927a 100755 --- a/summarize.py +++ b/summarize.py @@ -172,6 +172,9 @@ if __name__ == "__main__": parser.add_argument("--latex-preamble", help="latex code to include in the preamble of generated standalones", type=str) + parser.add_argument("-i", "--interactive", + help="drop into repl after summarizing the results", + action='store_true') args = parser.parse_args() @@ -197,3 +200,7 @@ if __name__ == "__main__": summarize(benchmarks=args.benchmarks, exclude_benchmarks=args.exclude_benchmarks) + + if args.interactive: + import code + code.InteractiveConsole(locals=globals()).interact() -- cgit v1.2.3