Emit WARNING for the cmdline options that exist multiple times
[kconfig-hardened-check.git] / kconfig_hardened_check / __init__.py
index 1b6cc2e9acc30bb2e587b2d3fa820bf152839326..a98fbe81c582462a8c85b71999d16109a62305ea 100644 (file)
@@ -194,7 +194,7 @@ def parse_cmdline_file(parsed_options, fname):
                 name = opt
                 value = '' # '' is not None
             if name in parsed_options:
-                sys.exit(f'[!] ERROR: cmdline option "{name}" exists multiple times')
+                print(f'[!] WARNING: cmdline option "{name}" exists multiple times')
             value = normalize_cmdline_options(name, value)
             parsed_options[name] = value