MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _match_abbrev

Function _match_abbrev

Lib/optparse.py:1674–1696  ·  view source on GitHub ↗

_match_abbrev(s : string, wordmap : {string : Option}) -> string Return the string key in 'wordmap' for which 's' is an unambiguous abbreviation. If 's' is found to be ambiguous or doesn't match any of 'words', raise BadOptionError.

(s, wordmap)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_match_long_optMethod · 0.85

Calls 5

BadOptionErrorClass · 0.85
startswithMethod · 0.80
keysMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected