Raised if an invalid option is seen on the command line.
| 124 | """ |
| 125 | |
| 126 | class BadOptionError (OptParseError): |
| 127 | """ |
| 128 | Raised if an invalid option is seen on the command line. |
| 129 | """ |
| 130 | def __init__(self, opt_str): |
| 131 | self.opt_str = opt_str |
| 132 | |
| 133 | def __str__(self): |
| 134 | return _("no such option: %s") % self.opt_str |
| 135 | |
| 136 | class AmbiguousOptionError (BadOptionError): |
| 137 | """ |
no outgoing calls
no test coverage detected