Commit 2b613012 authored by Adrian Wuillemet's avatar Adrian Wuillemet
Browse files

#20 Finialize options by providing help strings to the gui

parent a11e6f6a
Pipeline #4354 passed with stage
in 41 seconds
......@@ -148,4 +148,14 @@ keys_values: dict = {
VERBOSE: bool,
}
keys_help: dict = {
LANGUAGE: help_languages,
NO_WINDOW: f'{help_no_window} Requires new start to take effect.',
OUT_DIR: help_out_dir,
PORT: f'{help_port} Requires new start to take effect.',
REPLACE: help_replace_existing,
SKIP_VALIDATION: help_no_validation,
VERBOSE: f'{help_verbose} Requires new start to take effect.'
}
current_defaults: dict = load_defaults()
......@@ -167,6 +167,7 @@ def available_defaults() -> str:
"""
current: dict = defaults.current_defaults
descriptions: dict = defaults.keys_help
processed: dict = {}
......@@ -181,7 +182,7 @@ def available_defaults() -> str:
processed[key] = {
'typevalue': value,
'current': current[key] if key in current else None,
'description': 'A Description'
'description': descriptions[key]
}
try:
......
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