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

Class IndentedHelpFormatter

Lib/optparse.py:356–372  ·  view source on GitHub ↗

Format help with indented section bodies.

Source from the content-addressed store, hash-verified

354 return ", ".join(opts)
355
356class IndentedHelpFormatter (HelpFormatter):
357 """Format help with indented section bodies.
358 """
359
360 def __init__(self,
361 indent_increment=2,
362 max_help_position=24,
363 width=None,
364 short_first=1):
365 HelpFormatter.__init__(
366 self, indent_increment, max_help_position, width, short_first)
367
368 def format_usage(self, usage):
369 return _("Usage: %s\n") % usage
370
371 def format_heading(self, heading):
372 return "%*s%s:\n" % (self.current_indent, "", heading)
373
374
375class TitledHelpFormatter (HelpFormatter):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…