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

Method get_option_group

Lib/optparse.py:1329–1334  ·  view source on GitHub ↗
(self, opt_str)

Source from the content-addressed store, hash-verified

1327 return group
1328
1329 def get_option_group(self, opt_str):
1330 option = (self._short_opt.get(opt_str) or
1331 self._long_opt.get(opt_str))
1332 if option and option.container is not self:
1333 return option.container
1334 return None
1335
1336
1337 # -- Option-parsing methods ----------------------------------------

Callers 1

test_group_manipulateMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 1

test_group_manipulateMethod · 0.64