From: Alexander Popov Date: Sat, 21 Jan 2023 12:23:13 +0000 (+0300) Subject: Include parsed_cmdline_options in the print_unknown_options() call X-Git-Tag: v0.6.1~10 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=ab8c2e12ce5eb046c123292e7b999865ee08d721;p=kconfig-hardened-check.git Include parsed_cmdline_options in the print_unknown_options() call --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index ff23746..fae4524 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -1105,12 +1105,16 @@ def main(): parse_cmdline_file(parsed_cmdline_options, args.cmdline) populate_with_data(config_checklist, parsed_cmdline_options, 'cmdline') - # now everything is ready for performing the checks + # now everything is ready, perform the checks perform_checks(config_checklist) - # finally print the results if mode == 'verbose': - print_unknown_options(config_checklist, parsed_kconfig_options) + # print the parsed options without the checks (for debugging) + all_parsed_options = parsed_kconfig_options # assignment does not copy + all_parsed_options.update(parsed_cmdline_options) + print_unknown_options(config_checklist, all_parsed_options) + + # finally print the results print_checklist(mode, config_checklist, True) sys.exit(0)