MCPcopy Create free account
hub / github.com/ipython/traitlets / emit_options_help

Method emit_options_help

traitlets/config/application.py:584–597  ·  view source on GitHub ↗

Yield the lines for the options part of the help.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 2

print_optionsMethod · 0.95
emit_helpMethod · 0.95

Calls 3

emit_flag_helpMethod · 0.95
emit_alias_helpMethod · 0.95
wrap_paragraphsFunction · 0.90

Tested by

no test coverage detected