00007 :
00008 if opt.show:
00009 print 'Not injecting to wmagent in --show mode. Need to run the worklfows.'
00010 sys.exit(-1)
00011 if opt.wmcontrol=='init':
00012
00013 opt.nThreads=0
00014 if opt.wmcontrol=='test':
00015
00016 opt.dryRun=True
00017 if opt.wmcontrol=='submit' and opt.nThreads==0:
00018 print 'Not injecting to wmagent in -j 0 mode. Need to run the worklfows.'
00019 sys.exit(-1)
00020 if opt.wmcontrol=='force':
00021 print "This is an expert setting, you'd better know what you're doing"
00022 opt.dryRun=True