MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / format_help

Method format_help

tools/python-3.11.9-amd64/Lib/optparse.py:1627–1637  ·  view source on GitHub ↗
(self, formatter=None)

Source from the content-addressed store, hash-verified

1625 return formatter.format_epilog(self.epilog)
1626
1627 def format_help(self, formatter=None):
1628 if formatter is None:
1629 formatter = self.formatter
1630 result = []
1631 if self.usage:
1632 result.append(self.get_usage() + "\n")
1633 if self.description:
1634 result.append(self.format_description(formatter) + "\n")
1635 result.append(self.format_option_help(formatter))
1636 result.append(self.format_epilog(formatter))
1637 return "".join(result)
1638
1639 def print_help(self, file=None):
1640 """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