MCPcopy Index your code
hub / github.com/python/cpython / BadOptionError

Class BadOptionError

Lib/optparse.py:124–132  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

_process_short_optsMethod · 0.85
_match_abbrevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…