help: bad fix for missing config keys

The unknown config value will be displayed without warning or anything
to the user in the help page, which can be confusing e.g. when mixing
dash and underscore in keys. oh well
This commit is contained in:
dece 2022-01-02 17:33:52 +01:00
parent b1c3f6c518
commit f4bc3f7568

View file

@ -104,7 +104,7 @@ def get_help(config, plugins):
config_list = "\n".join( config_list = "\n".join(
( (
f"* {key} = {config[key]} (default {repr(DEFAULT_CONFIG[key])})" f"* {key} = {config[key]} (default {repr(DEFAULT_CONFIG[key])})"
if config[key] != DEFAULT_CONFIG[key] if key in DEFAULT_CONFIG and config[key] != DEFAULT_CONFIG[key]
else f"* {key} = {config[key]}" else f"* {key} = {config[key]}"
) )
for key in sorted(config) for key in sorted(config)