INNER CODE UNIT · Python
get_help
iterative/mlem · mlem/cli/main.py:87
def get_help(self, ctx: Context) -> str:
"""Formats the help into a string and returns it.
Calls :meth:`format_help` internally.
"""
formatter = MlemFormatter(
width=ctx.terminal_width, max_width=ctx.max_content_width
)
self.format_help(ctx, formatter)
return formatter.getvalue().rstrip("\n")
def _get_cmd_name_for_docs_link(self):
ctx = click.get_current_context()
return get_cmd_name(ctx, no_aliases=True, sep="/")
@staticmethod
def _add_docs_link(help, cmd_name):
return (