Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
optparse.BadOptionError Class Reference
Inheritance diagram for optparse.BadOptionError:
Inheritance graph
[legend]
Collaboration diagram for optparse.BadOptionError:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 opt_str
 msg

Detailed Description

Raised if an invalid option is seen on the command line.

Definition at line 131 of file optparse.py.


Constructor & Destructor Documentation

def optparse.BadOptionError.__init__ (   self,
  opt_str 
)

Reimplemented from optparse.OptParseError.

Definition at line 135 of file optparse.py.

00135 
00136     def __init__(self, opt_str):
00137         self.opt_str = opt_str

Here is the caller graph for this function:


Member Function Documentation

Reimplemented from optparse.OptParseError.

Reimplemented in optparse.AmbiguousOptionError.

Definition at line 138 of file optparse.py.

00138 
00139     def __str__(self):
00140         return _("no such option: %s") % self.opt_str


Member Data Documentation

Reimplemented in optparse.OptionError.

Definition at line 98 of file optparse.py.

Definition at line 136 of file optparse.py.


The documentation for this class was generated from the following file: