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. format_usage
()Methods Documentation
-
__call__
(parser, namespace, values, option_string)¶ Override one or more config name value pairs.
Parameters: - parser :
argparse.ArgumentParser
Argument parser.
- namespace :
argparse.Namespace
Parsed command. The
namespace.config
attribute is updated.- values :
list
A list of
configItemName=value
pairs.- option_string :
str
Option value specified by the user.
- parser :
-
format_usage
()¶
-