diff --git a/DDG4/python/DDSim/Helper/ConfigHelper.py b/DDG4/python/DDSim/Helper/ConfigHelper.py index 21d1d7ade82d4798c132d5d3fc6643f3124e294f..c092be31a9d3f3dd42c5086141da139f293cf338 100644 --- a/DDG4/python/DDSim/Helper/ConfigHelper.py +++ b/DDG4/python/DDSim/Helper/ConfigHelper.py @@ -125,7 +125,7 @@ class ConfigHelper(object): for name, obj in six.iteritems(vars(ddsim)): if isinstance(obj, ConfigHelper): for var, optionsDict in six.iteritems(obj.getOptions()): - optionsDict['action'] = 'store_true' if var.startswith("enable") else 'store' + optionsDict['action'] = 'store_true' if var.startswith("enable") else optionsDict.get('action', 'store') parser.add_argument("--%s.%s" % (name, var), dest="%s.%s" % (name, var), **optionsDict