Back to index

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

List of all members.

Public Member Functions

def __str__

Public Attributes

 msg
 option_id

Detailed Description

Raised if conflicting options are added to an OptionParser.

Definition at line 120 of file optparse.py.


Member Function Documentation

def optparse.OptionError.__str__ (   self) [inherited]

Reimplemented from optparse.OptParseError.

Definition at line 114 of file optparse.py.

00114 
00115     def __str__(self):
00116         if self.option_id:
00117             return "option %s: %s" % (self.option_id, self.msg)
00118         else:
00119             return self.msg


Member Data Documentation

Reimplemented from optparse.OptParseError.

Definition at line 111 of file optparse.py.

Definition at line 112 of file optparse.py.


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