Commit a14508d6 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

[script][click_helper] Add info in exported config file

parent 9483686f
Pipeline #21613 failed with stage
in 10 minutes and 26 seconds
......@@ -220,6 +220,11 @@ class ConfigCommand(click.Command):
if not isinstance(param, click.Option):
continue
config_file.write('## %s.\n' % param.help)
config_file.write(
'## Option: %s [default: %s]\n' % (
', '.join(param.opts), str(param.default)
)
)
config_file.write('# %s = %s\n\n' % (param.name,
str(ctx.params[param.name])))
config_file.write('\n\n\n')
......
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