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

Method _handle_conflict_error

Lib/argparse.py:1799–1806  ·  view source on GitHub ↗
(self, action, conflicting_actions)

Source from the content-addressed store, hash-verified

1797 conflict_handler(action, confl_optionals)
1798
1799 def _handle_conflict_error(self, action, conflicting_actions):
1800 message = ngettext('conflicting option string: %s',
1801 'conflicting option strings: %s',
1802 len(conflicting_actions))
1803 conflict_string = ', '.join([option_string
1804 for option_string, action
1805 in conflicting_actions])
1806 raise ArgumentError(action, message % conflict_string)
1807
1808 def _handle_conflict_resolve(self, action, conflicting_actions):
1809

Callers

nothing calls this directly

Calls 3

ngettextFunction · 0.90
ArgumentErrorClass · 0.70
joinMethod · 0.45

Tested by

no test coverage detected