import click


def get_short_help_str(command, limit=45):
    """
    Gets short help for the command or makes it by shortening the long help string.
    """
    return command.short_help or command.help and click.utils.make_default_short_help(command.help, limit) or ''