Commit 6a3d6ad7 by Alexander Popov

Please forgive me, I fear lambdas :\

Also print the value of the unknown option
parent 8cfef018
...@@ -217,9 +217,10 @@ def check_config_file(fname): ...@@ -217,9 +217,10 @@ def check_config_file(fname):
perform_checks(parsed_options) perform_checks(parsed_options)
if debug_mode: if debug_mode:
opt_list_names = [opt[0].name for opt in opt_list] known_options = [o[0].name for o in opt_list]
for option in filter(lambda option: option not in opt_list_names, parsed_options.keys()): for option, value in parsed_options.items():
print("DEBUG: dunno about option {} ".format(option)) if option not in known_options:
print("DEBUG: dunno about option {} ({})".format(option, value))
print_check_results() print_check_results()
......
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