ConfigValueAction

class lsst.pipe.base.ConfigValueAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)

Bases: argparse.Action

argparse action callback to override config parameters using name=value pairs from the command-line.

Methods Summary

__call__(parser, namespace, values, …)

Override one or more config name value pairs.

Methods Documentation

__call__(parser, namespace, values, option_string)

Override one or more config name value pairs.

Parameters
parserargparse.ArgumentParser

Argument parser.

namespaceargparse.Namespace

Parsed command. The namespace.config attribute is updated.

valueslist

A list of configItemName=value pairs.

option_stringstr

Option value specified by the user.