From: Alexander Popov Date: Fri, 13 Jul 2018 23:11:41 +0000 (+0300) Subject: ArgumentParser: drop unneeded default=False for args with action='store_true' X-Git-Tag: v0.5.2~89 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=987a7f63b64bdab60db6ac9c276b25c7a6b56976;p=kconfig-hardened-check.git ArgumentParser: drop unneeded default=False for args with action='store_true' --- 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()