CMS 3D CMS Logo

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

Public Member Functions

def __init__
 

Detailed Description

OptionParser is main class to parse options.

Definition at line 5 of file bookConverter.py.

Constructor & Destructor Documentation

def bookConverter.OptionParser.__init__ (   self)

Definition at line 9 of file bookConverter.py.

9 
10  def __init__(self):
11  optparse.OptionParser.__init__(self, usage="%prog --help or %prog [options] file", version="%prog 0.0.1", conflict_handler="resolve")
12  self.add_option("--src", action="store", type="string", dest="src", help="specify source XML file")
13  self.add_option("--min", action="store", type="int", dest="min", help="Minimum length to measure")
14  self.add_option("--max", action="store", type="int", dest="max", help="Maximum length to measure")
15  self.add_option("--cid", action="store", type="int", dest="cid", help="Apply combination ID")
16  self.add_option("--xsd", action="store_true", dest="xsd", help="Create XML Schema fragment")