diff --git a/util/check_code_policy.py b/util/check_code_policy.py index 6b2798bf..d3276f28 100644 --- a/util/check_code_policy.py +++ b/util/check_code_policy.py @@ -373,17 +373,17 @@ def asciiOnly(x): def main(): parser = optparse.OptionParser() parser.add_option('--dump-vim-commands', dest='dump_vim_commands', default=False, help='Dump oneline vim command') - parser.add_option('--check-debug-log-calls', dest='check_debug_log_calls', default=False, help='Check debug log call consistency') - parser.add_option('--check-carriage-returns', dest='check_carriage_returns', default=False, help='Check carriage returns') - parser.add_option('--check-fixme', dest='check_fixme', default=False, help='Check FIXME tags') - parser.add_option('--check-non-ascii', dest='check_non_ascii', default=False, help='Check non-ASCII characters') - parser.add_option('--check-no-symbol-visibility', dest='check_no_symbol_visibility', default=False, help='Check for missing symbol visibility macros') - parser.add_option('--check-rejected-identifiers', dest='check_rejected_identifiers', default=False, help='Check for rejected identifiers like plain "printf()" calls') - parser.add_option('--check-trailing-whitespace', dest='check_trailing_whitespace', default=False, help='Check for trailing whitespace') - parser.add_option('--check-mixed-indent', dest='check_mixed_indent', default=False, help='Check for mixed indent (space and tabs)') - parser.add_option('--check-nonleading-tab', dest='check_nonleading_tab', default=False, help='Check for non-leading tab characters') - parser.add_option('--check-cpp-comment', dest='check_cpp_comment', default=False, help='Check for c++ comments ("// ...")') - parser.add_option('--fail-on-errors', dest='fail_on_errors', default=False, help='Fail on errors (exit code != 0)') + parser.add_option('--check-debug-log-calls', dest='check_debug_log_calls', action='store_true', default=False, help='Check debug log call consistency') + parser.add_option('--check-carriage-returns', dest='check_carriage_returns', action='store_true', default=False, help='Check carriage returns') + parser.add_option('--check-fixme', dest='check_fixme', action='store_true', default=False, help='Check FIXME tags') + parser.add_option('--check-non-ascii', dest='check_non_ascii', action='store_true', default=False, help='Check non-ASCII characters') + parser.add_option('--check-no-symbol-visibility', dest='check_no_symbol_visibility', action='store_true', default=False, help='Check for missing symbol visibility macros') + parser.add_option('--check-rejected-identifiers', dest='check_rejected_identifiers', action='store_true', default=False, help='Check for rejected identifiers like plain "printf()" calls') + parser.add_option('--check-trailing-whitespace', dest='check_trailing_whitespace', action='store_true', default=False, help='Check for trailing whitespace') + parser.add_option('--check-mixed-indent', dest='check_mixed_indent', action='store_true', default=False, help='Check for mixed indent (space and tabs)') + parser.add_option('--check-nonleading-tab', dest='check_nonleading_tab', action='store_true', default=False, help='Check for non-leading tab characters') + parser.add_option('--check-cpp-comment', dest='check_cpp_comment', action='store_true', default=False, help='Check for c++ comments ("// ...")') + parser.add_option('--fail-on-errors', dest='fail_on_errors', action='store_true', default=False, help='Fail on errors (exit code != 0)') (opts, args) = parser.parse_args()