-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
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: ignoreMetadata
Metadata
Assignees
Labels
No labels