Allow config setting value to be DEFAULT which will reset value
svn: r15819
This commit is contained in:
parent
1d5bcbf423
commit
5b975f93cc
@ -226,6 +226,9 @@ class ArgParser(object):
|
|||||||
print "Current config setting '%s': %s" % (
|
print "Current config setting '%s': %s" % (
|
||||||
setting_name, setting_value)
|
setting_name, setting_value)
|
||||||
if set_value:
|
if set_value:
|
||||||
|
if new_value == "DEFAULT":
|
||||||
|
new_value = config.get_default(setting_name)
|
||||||
|
else:
|
||||||
new_value = safe_eval(new_value)
|
new_value = safe_eval(new_value)
|
||||||
config.set(setting_name, new_value)
|
config.set(setting_name, new_value)
|
||||||
print " New config setting '%s': %s" % (
|
print " New config setting '%s': %s" % (
|
||||||
|
Loading…
Reference in New Issue
Block a user