CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
main.SkeletonOptionParser Class Reference

Public Member Functions

def __init__ (self)
 
def get_opt (self)
 

Public Attributes

 parser
 

Detailed Description

Definition at line 23 of file main.py.

Constructor & Destructor Documentation

◆ __init__()

def main.SkeletonOptionParser.__init__ (   self)

Definition at line 25 of file main.py.

25  def __init__(self):
26  cname = os.environ.get('MKTMPL_CMD', 'main.py')
27  usage = "Usage: %s [options]\n" % cname
28  self.parser = OptionParser(usage=usage)
29  msg = "debug output"
30  self.parser.add_option("--debug", action="store_true",
31  default=False, dest="debug", help=msg)
32  msg = "specify template, e.g. EDProducer"
33  self.parser.add_option("--tmpl", action="store", type="string",
34  default='', dest="tmpl", help=msg)
35  msg = "specify package name, e.g. MyProducer"
36  self.parser.add_option("--name", action="store", type="string",
37  default="TestPkg", dest="pname", help=msg)
38  msg = "specify author name"
39  self.parser.add_option("--author", action="store", type="string",
40  default="", dest="author", help=msg)
41  msg = "specify file type to generate, "
42  msg += "e.g. --ftype=header, default is all files"
43  self.parser.add_option("--ftype", action="store", type="string",
44  default="all", dest="ftype", help=msg)
45  msg = "list examples tags which should be kept in "
46  msg += "generate code, e.g. "
47  msg += "--keep-etags='@example_trac,@example_hist'"
48  self.parser.add_option("--keep-etags", action="store", type="string",
49  default=None, dest="ketags", help=msg)
50  msg = "list template tags"
51  self.parser.add_option("--tags", action="store_true",
52  default=False, dest="tags", help=msg)
53  msg = "list template example tags"
54  self.parser.add_option("--etags", action="store_true",
55  default=False, dest="etags", help=msg)
56  msg = "list supported templates"
57  self.parser.add_option("--templates", action="store_true",
58  default=False, dest="templates", help=msg)
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ get_opt()

def main.SkeletonOptionParser.get_opt (   self)

Definition at line 59 of file main.py.

References main.parse_args(), query.DDOptionParser.parser, batchHippy.MyBatchManager.parser, main.SkeletonOptionParser.parser, XMLDOMBlock.parser, and das_client.DASOptionParser.parser.

59  def get_opt(self):
60  "Returns parse list of options"
61  return self.parser.parse_args()
62 
def parse_args(args)
Definition: main.py:63

Member Data Documentation

◆ parser

main.SkeletonOptionParser.parser

Definition at line 28 of file main.py.

Referenced by das.DASOptionParser.get_opt(), and main.SkeletonOptionParser.get_opt().