From 10e6561615be67a775993ec5bfbd54eac2efa9a1 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 21 Dec 2023 10:14:28 +0100 Subject: analyze-*: consistently split --plot-param plots on colons (:) --- bin/analyze-archive.py | 4 ++-- bin/analyze-kconfig.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index ebd16ce..684108a 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -197,7 +197,7 @@ if __name__ == "__main__": ) parser.add_argument( "--plot-param", - metavar=" [gplearn function][; [function];...])", + metavar="::[:gplearn function][;:::[function];...])", type=str, help="Plot measurements for by . " "X axis is parameter value. " @@ -835,7 +835,7 @@ if __name__ == "__main__": if args.plot_param: for kv in args.plot_param.split(";"): try: - state_or_trans, attribute, param_name, *function = kv.split(" ") + state_or_trans, attribute, param_name, *function = kv.split(":") except ValueError: print( "Usage: --plot-param='state_or_trans attribute param_name [additional function spec]'", diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index f2c6f8f..a7049f6 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -162,7 +162,7 @@ def main(): ) parser.add_argument( "--plot-param", - metavar=" [gplearn function][; [function];...])", + metavar="::[:gplearn function][;:::[function];...])", type=str, help="Plot measurements for by . " "X axis is parameter value. " @@ -378,7 +378,7 @@ def main(): for kv in args.plot_param.split(";"): try: - state_or_trans, attribute, param_name, *function = kv.split(" ") + state_or_trans, attribute, param_name, *function = kv.split(":") except ValueError: print( "Usage: --plot-param='state_or_trans attribute param_name [additional function spec]'", -- cgit v1.2.3