test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
contentValuesFiles.OptionParser Class Reference
Inheritance diagram for contentValuesFiles.OptionParser:

Public Member Functions

def __init__
 

Detailed Description

Option parser class 

Definition at line 14 of file contentValuesFiles.py.

Constructor & Destructor Documentation

def contentValuesFiles.OptionParser.__init__ (   self)

Definition at line 16 of file contentValuesFiles.py.

16 
17  def __init__(self):
18  optparse.OptionParser.__init__(self, usage="%prog [options]", version="%prog 0.0.1", conflict_handler="resolve")
19  self.add_option("--url", action="store", type="string", dest="url", default=SERVER_URL, help="specify RR XML-RPC server URL. Default is " + SERVER_URL)
20  self.add_option("--from", action="store", type="int", dest="from", default=None, help="specify run number lower threshold inclusive. Note that all runs/datasets retrieval can take a long time!")
21  self.add_option("--to", action="store", type="int", dest="to", default=None, help="specify run number upper threshold inclusive. Note that all runs/datasets retrieval can take a long time!")
22  self.add_option("--base", action="store", type="string", dest="base", default=DEFAULT_BASE, help="file base. Default is " + DEFAULT_BASE)