From e9fa43330ce69e7b532c845b01ec61d626ed206a Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 15 Aug 2022 02:53:26 +0300 Subject: [PATCH] Add more values for the normalization --- kconfig_hardened_check/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.31.1