changeset 118:1d6ac93d1d79

begin to break this up
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 04 Dec 2012 15:13:07 -0800
parents dd3480af4cd5
children f103c93690fb
files configuration/configuration.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configuration/configuration.py	Tue Dec 04 15:01:28 2012 -0800
+++ b/configuration/configuration.py	Tue Dec 04 15:13:07 2012 -0800
@@ -236,8 +236,9 @@
     """declarative configuration object"""
 
     options = {}         # configuration basis definition
+    extend = set()       # which dicts/lists should be extended
     load_option = 'load' # where to put the load option
-    extend = set()       # if dicts/lists should be extended
+    load_help = "load configuration from a file"
 
     def __init__(self, configuration_providers=configuration_providers, types=types, load=None, dump='--dump', **parser_args):
 
@@ -275,8 +276,9 @@
         # add option(s) for configuration_providers
         if load:
             self.add_option(load,
-                            dest=self.load_option, action='append',
-                            help="load configuration from a file")
+                            dest=self.load_option,
+                            action='append',
+                            help=self.load_help)
 
         # add an option for dumping
         formats = self.formats()