CMS 3D CMS Logo

List of all members | Public Member Functions
contentValuesToDBS.OptionParser Class Reference
Inheritance diagram for contentValuesToDBS.OptionParser:

Public Member Functions

def __init__ (self)
 

Detailed Description

Option parser class 

Definition at line 5 of file contentValuesToDBS.py.

Constructor & Destructor Documentation

def contentValuesToDBS.OptionParser.__init__ (   self)

Definition at line 7 of file contentValuesToDBS.py.

References contentValuesLib.checkFilter(), contentValuesLib.getDatasetName(), and contentValuesLib.getSummaryValues().

7  def __init__(self):
8  optparse.OptionParser.__init__(self, usage="%prog [options] root_file ...", version="%prog 0.0.1", conflict_handler="resolve")
9  self.add_option("--url", action="store", type="string", dest="url", default=SERVER_URL, help="specify DBS DQM XML-RPC server URL. Default is " + SERVER_URL)
10  self.add_option("--debug", "-d", action="store_true", dest="debug", default=False, help="print values and exit. Do not write to DBS")
11  self.add_option("--shift", "-s", action="store", type="choice", dest="shift", default="offline", choices=("online","offline"), help="specify shift type: online or offline values allowed")
12  self.add_option("--filter", "-f", action="store", type="string", dest="filter", default=None, help="Specify filters in the form \"('subsystem','folder','value')\" in regexp expression. Default is None and this takes all the subsystems, all folders and allvalues")
13