diff --git a/DDG4/python/DDSim/Helper/ConfigHelper.py b/DDG4/python/DDSim/Helper/ConfigHelper.py index 0d7421155f607700e6f3c5ac49176d4801f96550..9bcce56f75face67942c3cbcaaff11ae96930bf2 100644 --- a/DDG4/python/DDSim/Helper/ConfigHelper.py +++ b/DDG4/python/DDSim/Helper/ConfigHelper.py @@ -121,7 +121,8 @@ class ConfigHelper(object): for name, obj in vars(ddsim).items(): if isinstance(obj, ConfigHelper): for var, optionsDict in obj.getOptions().items(): - optionsDict['action'] = 'store_true' if var.startswith("enable") else optionsDict.get('action', 'store') + optionsDict['action'] = ('store_true' if var.startswith(("enable", "force")) + else optionsDict.get('action', 'store')) parser.add_argument("--%s.%s" % (name, var), dest="%s.%s" % (name, var), **optionsDict