Main Page
Namespaces
Classes
Package Documentation
Namespace List
Namespace Members
Functions
o2oRun Namespace Reference
Functions
def
main
(argv)
Detailed Description
Function Documentation
def
o2oRun.main
(
argv
)
Definition at line
14
of file
o2oRun.py
.
14
def
main
( argv ):
15
16
parser =
argparse.ArgumentParser
()
17
parser.add_argument(
"executable"
, type=str, help=
"wrapper for O2O jobs"
)
18
parser.add_argument(
"-n"
,
"--name"
, type=str, help=
"the O2O job name"
)
19
parser.add_argument(
"--db"
, type=str, help=
"the target database: pro ( for prod ) or dev ( for prep ). default=pro"
)
20
parser.add_argument(
"-a"
,
"--auth"
, type=str, help=
"path of the authentication file"
)
21
parser.add_argument(
"-v"
,
"--verbose"
, action=
"count"
, help=
"job output mirrored to screen (default=logfile only)"
)
22
args = parser.parse_args()
23
24
tool =
o2olib.O2OTool
()
25
tool.setup(args)
26
return
tool.run()
27
o2oRun.main
def main(argv)
Definition:
o2oRun.py:14
argparse.ArgumentParser
Definition:
argparse.py:1503
o2olib.O2OTool
Definition:
o2olib.py:434
Generated for CMSSW Reference Manual by
1.8.11