Skip to content
Snippets Groups Projects
Commit 6f62b09d authored by Tim Martin's avatar Tim Martin
Browse files

Give the option to pass in the arg parser

parent 1eb2b0d9
No related branches found
No related tags found
3 merge requests!755532024-11-01: merge of 24.0 into main,!75484Let an argument parser be passed in to runHLT.athenaCfg,!75127Draft: Seeder types rebase2 grid fix
......@@ -132,7 +132,7 @@ def athenaHLTCfg(flags):
return cfg
def athenaCfg(flags):
def athenaCfg(flags, parser=None):
"""Top-level cfg function when running in athena"""
from AthenaConfiguration.Enums import Format
......@@ -143,7 +143,8 @@ def athenaCfg(flags):
flags.Common.isOnline = lambda f: not f.Input.isMC
# Add options to command line parser
parser = flags.getArgumentParser()
if not parser:
parser = flags.getArgumentParser()
parser.add_argument('--postExec', metavar='CMD',
help='Commands executed after Python configuration')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment