From: Alexander Popov Date: Sun, 14 Aug 2022 23:53:26 +0000 (+0300) Subject: Add more values for the normalization X-Git-Tag: v0.6.1~111 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e9fa43330ce69e7b532c845b01ec61d626ed206a;p=kconfig-hardened-check.git Add more values for the normalization --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 58a0e78..0367d88 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -863,9 +863,9 @@ def normalize_cmdline_options(option, value): return value # Implement a limited part of the kstrtobool() logic - if value in ('1', 'on', 'ON', 'y', 'Y'): + if value in ('1', 'on', 'On', 'ON', 'y', 'Y', 'yes', 'Yes', 'YES'): return '1' - if value in ('0', 'off', 'OFF', 'n', 'N'): + if value in ('0', 'off', 'Off', 'OFF', 'n', 'N', 'no', 'No', 'NO'): return '0' # Preserve unique values