def METHOD_NAME(help: str, cross_references=True):
    """
    Convert the output of a ``cli --help`` call to rst.
    """
    summary, *sections = SECTION_REGEX.findall(help)
    # We could stick the summary (``usage: pyinstaller [-h] [--help] ...``) into a code block, but it is pretty
    # unhelpful, so I choose to omit it.
    sections = "\n".join(section_to_rst(section, cross_references) for section in sections)
    return sections