Commit 987a7f63 by Alexander Popov

ArgumentParser: drop unneeded default=False for args with action='store_true'

parent 69e0c6c4
...@@ -216,9 +216,9 @@ def check_config_file(fname): ...@@ -216,9 +216,9 @@ def check_config_file(fname):
if __name__ == '__main__': if __name__ == '__main__':
parser = ArgumentParser(description='Checks the hardening options in the Linux kernel config') 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('-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() args = parser.parse_args()
construct_opt_list() construct_opt_list()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment