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

Method format_help

Lib/optparse.py:1057–1063  ·  view source on GitHub ↗
(self, formatter)

Source from the content-addressed store, hash-verified

1055 return formatter.format_description(self.get_description())
1056
1057 def format_help(self, formatter):
1058 result = []
1059 if self.description:
1060 result.append(self.format_description(formatter))
1061 if self.option_list:
1062 result.append(self.format_option_help(formatter))
1063 return "\n".join(result)
1064
1065
1066class OptionGroup (OptionContainer):

Callers

nothing calls this directly

Calls 4

format_descriptionMethod · 0.95
format_option_helpMethod · 0.95
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected