Format help with indented section bodies.
| 354 | return ", ".join(opts) |
| 355 | |
| 356 | class IndentedHelpFormatter (HelpFormatter): |
| 357 | """Format help with indented section bodies. |
| 358 | """ |
| 359 | |
| 360 | def __init__(self, |
| 361 | indent_increment=2, |
| 362 | max_help_position=24, |
| 363 | width=None, |
| 364 | short_first=1): |
| 365 | HelpFormatter.__init__( |
| 366 | self, indent_increment, max_help_position, width, short_first) |
| 367 | |
| 368 | def format_usage(self, usage): |
| 369 | return _("Usage: %s\n") % usage |
| 370 | |
| 371 | def format_heading(self, heading): |
| 372 | return "%*s%s:\n" % (self.current_indent, "", heading) |
| 373 | |
| 374 | |
| 375 | class TitledHelpFormatter (HelpFormatter): |
no outgoing calls
no test coverage detected
searching dependent graphs…