changeset 45:bb5f4eeb56c5

stub only using parsed attributes
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 27 Mar 2012 12:16:43 -0700
parents b3db38b14567
children 346c702f63db
files configuration/config.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configuration/config.py	Tue Mar 27 11:33:09 2012 -0700
+++ b/configuration/config.py	Tue Mar 27 12:16:43 2012 -0700
@@ -305,6 +305,10 @@
         # get CLI configuration options
         cli_config = dict([(key, value) for key, value in options.__dict__.items()
                            if key in self.options])
+        if hasattr(parser, 'parsed'):
+            # only use parsed arguments
+            # (though i'm not sure what to do with parser doesn't have the parsed attribute)
+            pass
 
         # generate configuration
         self(cli_config)