Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 possibilities
 opt_str
 msg

Detailed Description

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

Definition at line 141 of file optparse.py.


Constructor & Destructor Documentation

def optparse.AmbiguousOptionError.__init__ (   self,
  opt_str,
  possibilities 
)

Definition at line 145 of file optparse.py.

00145 
00146     def __init__(self, opt_str, possibilities):
00147         BadOptionError.__init__(self, opt_str)
00148         self.possibilities = possibilities

Here is the caller graph for this function:


Member Function Documentation

Reimplemented from optparse.BadOptionError.

Definition at line 149 of file optparse.py.

00149 
00150     def __str__(self):
00151         return (_("ambiguous option: %s (%s?)")
00152                 % (self.opt_str, ", ".join(self.possibilities)))
00153 


Member Data Documentation

Reimplemented in optparse.OptionError.

Definition at line 98 of file optparse.py.

Definition at line 136 of file optparse.py.

Definition at line 147 of file optparse.py.


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