From 3e93e671635ef2547803b50a9ad74de48ae7b9bc Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Fri, 4 Nov 2022 09:48:34 +0100 Subject: [PATCH] Fix python style errors --- DDG4/examples/SiDSim.py | 3 +-- DDG4/python/DDG4.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DDG4/examples/SiDSim.py b/DDG4/examples/SiDSim.py index 167ebce32..130c080d7 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 190f720f9..7d000ba21 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] == '-': -- GitLab