From 987a7f63b64bdab60db6ac9c276b25c7a6b56976 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sat, 14 Jul 2018 02:11:41 +0300 Subject: [PATCH] ArgumentParser: drop unneeded default=False for args with action='store_true' --- kconfig-hardened-check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index d21788a..f3a3b42 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -216,9 +216,9 @@ def check_config_file(fname): if __name__ == '__main__': parser = ArgumentParser(description='Checks the hardening options in the Linux kernel config') - parser.add_argument('-p', '--print', default=False, action='store_true', help='print hardening preferences') + parser.add_argument('-p', '--print', action='store_true', help='print hardening preferences') parser.add_argument('-c', '--config', help='check the config_file against these preferences') - parser.add_argument('--debug', default=False, action='store_true', help='enable internal debug mode') + parser.add_argument('--debug', action='store_true', help='enable internal debug mode') args = parser.parse_args() construct_opt_list() -- 2.31.1