Skip to content

Issue with Click 6.7 #51

@mahyarmirrashed

Description

@mahyarmirrashed

Click 6.7 doesn't support get_short_help_str so I had to monkey patch it like this. I hope this helps others.

import click


def _patched_get_short_help_str(command, limit=45):
    return (
        command.short_help
        or command.help
        and click.utils.make_default_short_help(command.help, limit)
        or ""
    )


def apply():
    click.Command.get_short_help_str = _patched_get_short_help_str  # type: ignore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions