(self)
| 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 |
no test coverage detected