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

Class AmbiguousOptionError

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

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

Source from the content-addressed store, hash-verified

132 return _("no such option: %s") % self.opt_str
133
134class AmbiguousOptionError (BadOptionError):
135 """
136 Raised if an ambiguous option is seen on the command line.
137 """
138 def __init__(self, opt_str, possibilities):
139 BadOptionError.__init__(self, opt_str)
140 self.possibilities = possibilities
141
142 def __str__(self):
143 return (_("ambiguous option: %s (%s?)")
144 % (self.opt_str, ", ".join(self.possibilities)))
145
146
147class HelpFormatter:

Callers 1

_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…