Yield the lines for the options part of the help.
(self)
| 582 | print("\n".join(self.emit_options_help())) |
| 583 | |
| 584 | def emit_options_help(self) -> t.Generator[str, None, None]: |
| 585 | """Yield the lines for the options part of the help.""" |
| 586 | if not self.flags and not self.aliases: |
| 587 | return |
| 588 | header = "Options" |
| 589 | yield header |
| 590 | yield "=" * len(header) |
| 591 | for p in wrap_paragraphs(self.option_description): |
| 592 | yield p |
| 593 | yield "" |
| 594 | |
| 595 | yield from self.emit_flag_help() |
| 596 | yield from self.emit_alias_help() |
| 597 | yield "" |
| 598 | |
| 599 | def print_subcommands(self) -> None: |
| 600 | """Print the subcommand part of the help.""" |
no test coverage detected