dplutils.cli.cli_run#
- dplutils.cli.cli_run(pipeline: PipelineExecutor, args: Namespace | None = None, **argparse_kwargs)[source]#
Run pipeline from cli args
If
argsis None, this function runs the pipeline for the standard set of workload-independent arguments (e.g. those that are generic to pipleines in general; seeadd_generic_args()). Ifargsis supplied, it must be anargparse.Namespaceobject with command line arguments to be used to configure pipline (see alsoset_config_grom_args()).The pipeline is run using the
PipelineExecutor.writetomethod to theout-dircli argument.- Parameters:
pipeline – The pipeline to configure and run
args – None or and argparse.Namespace object of parsed args
argparse_kwargs – kwargs to be passed to
ArgumentParseron instantiation