diff --git a/DDG4/examples/SiDSim.py b/DDG4/examples/SiDSim.py index 167ebce327d90f94e9ed6b1f8384e9722fa87328..130c080d7859638c71c0f6dc429f07d8b115491f 100644 --- a/DDG4/examples/SiDSim.py +++ b/DDG4/examples/SiDSim.py @@ -39,13 +39,12 @@ def help(): logging.info(" Macro file is optional") logging.info(" -macro <file> Start G4 macro ") logging.info(" -batch Batch execution ") - logging.info(" -events <number> If batch: number of events to be executed"); + logging.info(" -events <number> If batch: number of events to be executed") def run(): args = DDG4.CommandLine() # - if args.help: help() sys.exit(1) diff --git a/DDG4/python/DDG4.py b/DDG4/python/DDG4.py index 190f720f93cf874e854d1dfe35972b20aa2ef198..7d000ba214537578fd594a870143a325777b0568 100644 --- a/DDG4/python/DDG4.py +++ b/DDG4/python/DDG4.py @@ -355,6 +355,7 @@ class CommandLine: def __init__(self, help=None): import sys self.data = {} + help_call = help have_help = False for i in range(len(sys.argv)): if sys.argv[i][0] == '-':