diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py index 888a79a36f6029995720ebc9f48303656e613675..8719dfcf4a4f50ce0284f3333f42c659ed554cc4 100644 --- a/DDSim/DD4hepSimulation.py +++ b/DDSim/DD4hepSimulation.py @@ -211,12 +211,11 @@ class DD4hepSimulation(object): #self.__treatUnknownArgs( parsed, unknown ) self.__parseAllHelper( parsed ) - if self._errorMessages: + if self._errorMessages and not (self._dumpParameter or self._dumpSteeringFile): parser.epilog = "\n".join(self._errorMessages) parser.print_help() exit(1) - if self._dumpParameter: from pprint import pprint print "="*80 @@ -607,7 +606,7 @@ SIM = DD4hepSimulation() steeringFileBase += "################################################################################\n" options = parameter.getOptions() for opt,valAndDoc in sorted( options.iteritems(), sortParameters ): - parValue, parDoc = valAndDoc + parValue, parDoc, _parOptions = valAndDoc if parDoc: steeringFileBase += "\n## %s\n" % "\n## ".join(parDoc.splitlines()) ## add quotes if it is a string