Commit 92270e09 by Alexander Popov

Improve 'dunno' report in debug_mode

parent bde11060
......@@ -545,7 +545,14 @@ def check_config_file(checklist, fname):
perform_checks(checklist, parsed_options)
if debug_mode:
known_options = [opt.name for opt in checklist]
known_options = []
for opt in checklist:
if hasattr(opt, 'opts'):
for o in opt.opts:
if hasattr(o, 'name'):
known_options.append(o.name)
else:
known_options.append(opt.name)
for option, value in parsed_options.items():
if option not in known_options:
print('DEBUG: dunno about option {} ({})'.format(option, value))
......
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