MCPcopy Index your code
hub / github.com/RustPython/RustPython / _is_long_option

Method _is_long_option

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

Source from the content-addressed store, hash-verified

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

Callers 2

color_option_stringsMethod · 0.95

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected