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

Method format_option_help

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

Source from the content-addressed store, hash-verified

1043 # -- Help-formatting methods ---------------------------------------
1044
1045 def format_option_help(self, formatter):
1046 if not self.option_list:
1047 return ""
1048 result = []
1049 for option in self.option_list:
1050 if not option.help is SUPPRESS_HELP:
1051 result.append(formatter.format_option(option))
1052 return "".join(result)
1053
1054 def format_description(self, formatter):
1055 return formatter.format_description(self.get_description())

Callers 1

format_helpMethod · 0.95

Calls 3

format_optionMethod · 0.80
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected