Mercurial > hg > configuration
changeset 75:c119eb07a378
rename/shuffle options to make more sense
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 28 Mar 2012 12:56:50 -0700 |
parents | 0516a9e0566b |
children | 6667e79ffcb3 |
files | configuration/configuration.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/configuration/configuration.py Wed Mar 28 12:42:58 2012 -0700 +++ b/configuration/configuration.py Wed Mar 28 12:56:50 2012 -0700 @@ -193,7 +193,7 @@ options = {} # configuration basis - def __init__(self, configuration_providers=configuration_providers, configuration_provider_option=None, types=types, dump='--dump', **parser_args): + def __init__(self, configuration_providers=configuration_providers, types=types, load=None, dump='--dump', **parser_args): # setup configuration self.config = {} @@ -217,10 +217,10 @@ self.parsed = set() self.optparse_options(self) # add option(s) for configuration_providers - if configuration_provider_option: - self.add_option(configuration_provider_option, - dest='load', action='append', - help="load configuration from a file") + if load: + self.add_option(load, + dest='load', action='append', + help="load configuration from a file") # add an option for dumping formats = self.formats()