MCPcopy Create free account
hub / github.com/apache/madlib / format_help

Method format_help

src/madpack/argparse.py:2289–2310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2287 return formatter.format_help()
2288
2289 def format_help(self):
2290 formatter = self._get_formatter()
2291
2292 # usage
2293 formatter.add_usage(self.usage, self._actions,
2294 self._mutually_exclusive_groups)
2295
2296 # description
2297 formatter.add_text(self.description)
2298
2299 # positionals, optionals and user-defined groups
2300 for action_group in self._action_groups:
2301 formatter.start_section(action_group.title)
2302 formatter.add_text(action_group.description)
2303 formatter.add_arguments(action_group._group_actions)
2304 formatter.end_section()
2305
2306 # epilog
2307 formatter.add_text(self.epilog)
2308
2309 # determine help from format above
2310 return formatter.format_help()
2311
2312 def format_version(self):
2313 import warnings

Callers 1

print_helpMethod · 0.95

Calls 7

_get_formatterMethod · 0.95
add_usageMethod · 0.80
add_textMethod · 0.80
start_sectionMethod · 0.80
add_argumentsMethod · 0.80
end_sectionMethod · 0.80
format_helpMethod · 0.45

Tested by

no test coverage detected