Skip to content
Snippets Groups Projects
Commit a14508d6 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

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

parent 9483686f
No related branches found
No related tags found
1 merge request!86Dump config file
Pipeline #
This commit is part of merge request !86. Comments created here will be created in the context of that merge request.
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment