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

Method _match_long_opt

Lib/optparse.py:1448–1455  ·  view source on GitHub ↗

_match_long_opt(opt : string) -> string Determine which long option string 'opt' matches, ie. which one it is an unambiguous abbreviation for. Raises BadOptionError if 'opt' doesn't unambiguously match any long option string.

(self, opt)

Source from the content-addressed store, hash-verified

1446 # not a very interesting subset!
1447
1448 def _match_long_opt(self, opt):
1449 """_match_long_opt(opt : string) -> string
1450
1451 Determine which long option string 'opt' matches, ie. which one
1452 it is an unambiguous abbreviation for. Raises BadOptionError if
1453 'opt' doesn't unambiguously match any long option string.
1454 """
1455 return _match_abbrev(opt, self._long_opt)
1456
1457 def _process_long_opt(self, rargs, values):
1458 arg = rargs.pop(0)

Callers 1

_process_long_optMethod · 0.95

Calls 1

_match_abbrevFunction · 0.85

Tested by

no test coverage detected