Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-06 09:39:50

0001 #!/usr/bin/env python3
0002 '''
0003 '''
0004 
0005 __author__ = 'Giacomo Govi'
0006 
0007 import sys
0008 import os
0009 
0010 import CondCore.Utilities.o2olib as o2olib
0011 import optparse
0012 import argparse
0013     
0014 def main( argv ):
0015 
0016     parser = argparse.ArgumentParser()
0017     parser.add_argument("executable", type=str, help="wrapper for O2O jobs")
0018     parser.add_argument("-n","--name", type=str, help="the O2O job name" )
0019     parser.add_argument("--db", type=str, help="the target database: pro ( for prod ) or dev ( for prep ). default=pro")
0020     parser.add_argument("-a","--auth", type=str,  help="path of the authentication file")
0021     parser.add_argument("-v","--verbose", action="count", help="job output mirrored to screen (default=logfile only)")
0022     args = parser.parse_args()  
0023 
0024     tool = o2olib.O2OTool()
0025     tool.setup(args)
0026     return tool.run()
0027 
0028 if __name__ == '__main__':
0029     sys.exit(main(sys.argv))