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

Method _is_long_option

Lib/argparse.py:410–411  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

408 return f'{t.usage}{prefix}{t.reset}{usage}\n\n'
409
410 def _is_long_option(self, string):
411 return len(string) > 2
412
413 def _get_actions_usage_parts(self, actions, groups):
414 """Get usage parts with split index for optionals/positionals.

Callers 2

color_option_stringsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected