use group exclusively except for config

This commit is contained in:
Yohann Rebattu 2016-10-11 18:21:17 +02:00
parent 11710f75a8
commit ca2d519345

View File

@ -112,15 +112,6 @@ def run():
configuration = config.load(configuration_paths)
configuration_found = True
# Update Radicale configuration according to options
for option in parser.option_list:
key = option.dest
if key:
section = option.dest.split('_')[0]
value = getattr(options, key)
if value is not None:
configuration.set(section, key, str(value))
for group in parser.option_groups:
section = group.title
for option in group.option_list: