dplutils.cli.set_config_from_args

dplutils.cli.set_config_from_args#

dplutils.cli.set_config_from_args(pipeline: PipelineExecutor, args: Namespace)[source]#

Configure pipeline using config from arguments

Set context from the set-context argument and config from set-config and both from config file given in file. Config file will be applied first so that specific context and config settings on the command line will override settings in the file. Each will be parsed as name=value pair, where the value is parsed as a JSON object, falling back to string.

For set-config, the name is of the form task.param[.subparam[...]] where task is the taskname, param is a parameter of PipelineTask and subparam is a key within a dictionary of such a parameter (where applicable).