0

Use advanced command line options

Options specified as 'advanced' were being silently discarded due to an
error in 8c87fa6bb5
This commit is contained in:
Thomas Lake
2011-08-16 16:17:38 +01:00
parent e618e949c9
commit 46c960b37d

View File

@@ -78,7 +78,6 @@ class ConfigOptionParser(object):
g = dict() g = dict()
for a in self.configVars: for a in self.configVars:
n = a['dest'] n = a['dest']
if a.get('advanced', False): continue
if a.get('commandLineOnly', False): continue if a.get('commandLineOnly', False): continue
v = getattr(options, n) v = getattr(options, n)
if v != None: if v != None:
@@ -133,7 +132,6 @@ class ConfigOptionParser(object):
# third, merge options into configReslts (with options overwriting anything in configResults) # third, merge options into configReslts (with options overwriting anything in configResults)
for a in self.configVars: for a in self.configVars:
n = a['dest'] n = a['dest']
if a.get('advanced', False): continue
if getattr(options, n) != None: if getattr(options, n) != None:
configResults.__dict__[n] = getattr(options, n) configResults.__dict__[n] = getattr(options, n)