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

Method _check_help

Lib/argparse.py:1822–1828  ·  view source on GitHub ↗
(self, action)

Source from the content-addressed store, hash-verified

1820 action.container._remove_action(action)
1821
1822 def _check_help(self, action):
1823 if action.help and hasattr(self, "_get_validation_formatter"):
1824 formatter = self._get_validation_formatter()
1825 try:
1826 formatter._expand_help(action)
1827 except (ValueError, TypeError, KeyError) as exc:
1828 raise ValueError('badly formed help string') from exc
1829
1830
1831class _ArgumentGroup(_ActionsContainer):

Callers 3

add_argumentMethod · 0.95
add_parserMethod · 0.80
add_subparsersMethod · 0.80

Calls 2

_expand_helpMethod · 0.80

Tested by

no test coverage detected