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

Method format_help

Lib/optparse.py:1617–1627  ·  view source on GitHub ↗
(self, formatter=None)

Source from the content-addressed store, hash-verified

1615 return formatter.format_epilog(self.epilog)
1616
1617 def format_help(self, formatter=None):
1618 if formatter is None:
1619 formatter = self.formatter
1620 result = []
1621 if self.usage:
1622 result.append(self.get_usage() + "\n")
1623 if self.description:
1624 result.append(self.format_description(formatter) + "\n")
1625 result.append(self.format_option_help(formatter))
1626 result.append(self.format_epilog(formatter))
1627 return "".join(result)
1628
1629 def print_help(self, file=None):
1630 """print_help(file : file = stdout)

Callers 1

print_helpMethod · 0.95

Calls 6

get_usageMethod · 0.95
format_option_helpMethod · 0.95
format_epilogMethod · 0.95
appendMethod · 0.45
format_descriptionMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected