ConfigFileAction

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

Bases: Action

argparse action to load config overrides from one or more files.

Methods Summary

__call__(parser, namespace, values[, ...])

Load one or more files of config overrides.

format_usage()

Methods Documentation

__call__(parser, namespace, values, option_string=None)

Load one or more files of config overrides.

Parameters:
parserargparse.ArgumentParser

Argument parser.

namespaceargparse.Namespace

Parsed command. The following attributes are updated by this method: namespace.config.

valueslist

A list of data config file paths.

option_stringstr, optional

Option value specified by the user.

format_usage()