parser.add_argument("-c","--conf-file","--config",help="Configuration file with all Corryvreckan algorithms defined",metavar="FILE")
parser.add_argument('--option','-o',action='append',metavar="NAME=VALUE",help="Specify further options such as 'beamenergy=5.3'. This switch be specified several times for multiple options or can parse a comma-separated list of options. This switch overrides any config file options and also overwrites hard-coded settings on the Corryvreckan configration file.")
parser.add_argument("-n","--naf-file","--naf",help="Specify qsub parameter file for NAF submission. Run NAF submission via qsub instead of calling Corryvreckan directly",metavar="FILE")
parser.add_argument("-lx","--lxplus-file","--lxplus",help="Specify bsub parameter file for LXPLUS submission. Run LXPLUS submission via bsub instead of calling Corryvreckan directly",metavar="FILE")
parser.add_argument("-htc","--htcondor-file","--batch",help="Specify condor_submit parameter file for LXPLUS submission. Run LXPLUS submission via bsub instead of calling Corryvreckan directly",metavar="FILE")
parser.add_argument("-csv","--csv-file",help="Load additional run-specific variables from table (text file in csv format)",metavar="FILE")
parser.add_argument("--log-file",help="Save submission log to specified file",metavar="FILE")
parser.add_argument("-v","--verbosity",default="info",help="Sets the verbosity of log messages during job submission where LEVEL is either debug, info, warning or error",metavar="LEVEL")
...
...
@@ -612,19 +575,10 @@ def main(argv=None):
ifnotcheckSteer(steeringString):
return1
ifargs.naf_fileandargs.lxplus_file:
log.critical("Not possible to submit to both NAF and LXPLUS at the same time!")
return1
ifargs.naf_file:
args.naf_file=os.path.abspath(args.naf_file)
ifnotos.path.isfile(args.naf_file):
log.critical("NAF submission parameters file '"+args.naf_file+"' not found!")