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

Method has_option

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

Source from the content-addressed store, hash-verified

1023 self._long_opt.get(opt_str))
1024
1025 def has_option(self, opt_str):
1026 return (opt_str in self._short_opt or
1027 opt_str in self._long_opt)
1028
1029 def remove_option(self, opt_str):
1030 option = self._short_opt.get(opt_str)

Callers 11

basic_testMethod · 0.45
test_case_sensitivityMethod · 0.45
test_has_optionMethod · 0.45
assertTrueremovedMethod · 0.45
GetMethod · 0.45
SetOptionMethod · 0.45
GetOptionMethod · 0.45
GetThemeDictMethod · 0.45
save_optionMethod · 0.45
test_save_optionMethod · 0.45
test_save_helpMethod · 0.45

Calls

no outgoing calls

Tested by 6

basic_testMethod · 0.36
test_case_sensitivityMethod · 0.36
test_has_optionMethod · 0.36
assertTrueremovedMethod · 0.36
test_save_optionMethod · 0.36
test_save_helpMethod · 0.36