MCPcopy Index your code
hub / github.com/RustPython/RustPython / BadOptionError

Class BadOptionError

Lib/optparse.py:126–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

124 """
125
126class 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
136class AmbiguousOptionError (BadOptionError):
137 """

Callers 2

_process_short_optsMethod · 0.85
_match_abbrevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected