diff --git a/k4FWCore/scripts/k4run b/k4FWCore/scripts/k4run index 710fd67c..f0a8f48f 100755 --- a/k4FWCore/scripts/k4run +++ b/k4FWCore/scripts/k4run @@ -95,6 +95,7 @@ if __name__ == "__main__": handler.setFormatter(formatter) logger.addHandler(handler) + global parser parser = argparse.ArgumentParser(description="Run job in the Key4HEP framework") parser.add_argument("config_files", type=open, action=LoadFromFile, nargs="*", help="Gaudi config (python) files describing the job")