Commit 0ad3dd58 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

Add function doc

parent e649bd37
Pipeline #21620 passed with stage
in 8 minutes and 2 seconds
......@@ -216,6 +216,16 @@ def mod_to_context(mod):
def dump_config(params, ctx):
""" Generate configuration file from parameters and context
Parameters
----------
params : :any:`list`
List of parameters. For example, params attributes of click.Option.
ctx : dict
Click context dictionary.
"""
config_file = open(ctx.params.get('dump_config'), 'w')
logger.debug("Generating configuration file `%s'...", config_file)
config_file.write('## Configuration file automatically generated at %s '
......
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