From ca4e50cb46fd19222a1fbc399dac217b79f25e08 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 2 Mar 2022 21:39:55 +0100 Subject: analyze-kconfig: export-model -> export-webconf --- bin/analyze-kconfig.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/analyze-kconfig.py') diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index aab71e8..8fe4379 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -61,7 +61,7 @@ def main(): help="Exit after exporting observations", ) parser.add_argument( - "--export-model", + "--export-webconf", type=str, help="Export kconfig-webconf NFP model to file", metavar="FILE", @@ -305,7 +305,7 @@ def main(): if args.show_model_size: dfatool.cli.print_model_size(model) - if args.export_model: + if args.export_webconf: with open("nfpkeys.json", "r") as f: nfpkeys = json.load(f) complete_json_model = model.to_json( @@ -316,7 +316,7 @@ def main(): for attribute, data in attribute_data.items(): json_model[attribute] = data.copy() json_model[attribute].update(nfpkeys[name][attribute]) - with open(args.export_model, "w") as f: + with open(args.export_webconf, "w") as f: json.dump(json_model, f, sort_keys=True, cls=dfatool.utils.NpEncoder) if xv_method == "montecarlo": -- cgit v1.2.3