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

Method _format_text

Lib/argparse.py:516–521  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

514 return parts, pos_start
515
516 def _format_text(self, text):
517 if '%(prog)' in text:
518 text = text % dict(prog=self._prog)
519 text_width = max(self._width - self._current_indent, 11)
520 indent = ' ' * self._current_indent
521 return self._fill_text(text, text_width, indent) + '\n\n'
522
523 def _format_action(self, action):
524 # determine the required width and the entry label

Callers

nothing calls this directly

Calls 2

_fill_textMethod · 0.95
maxFunction · 0.85

Tested by

no test coverage detected