# HG changeset patch
# User Jeff Hammel <jhammel@mozilla.com>
# Date 1332888062 25200
# Node ID b8f066b8ab6274864371c1ae7d6e0d0f45d0b913
# Parent  f7dc5cf2540c80b6c4834d2baf6b72f5c08c13e5
begin migration path towards inheriting from ConfigParser; ideally, Configuration should live in its own class and the CLI class should inherit from that

diff -r f7dc5cf2540c -r b8f066b8ab62 configuration/config.py
--- a/configuration/config.py	Tue Mar 27 15:25:12 2012 -0700
+++ b/configuration/config.py	Tue Mar 27 15:41:02 2012 -0700
@@ -175,15 +175,16 @@
          None:  base_cli} # default
 __all__ += [i.__name__ for i in types.values()]
 
-class Configuration(object):
+class Configuration(optparse.OptionParser):
     """declarative configuration object"""
 
     options = {} # configuration basis
 
-    def __init__(self, configuration_providers=configuration_providers, types=types):
+    def __init__(self, configuration_providers=configuration_providers, types=types, **parser_args):
         self.config = {}
         self.configuration_providers = configuration_providers
         self.types = types
+        optparse.OptionParser.__init__(self, **parser_args)
 
     ### methods for iteration
     ### TODO: make this a real iterator