import click


def _cb_shape(ctx, param, value):

    """
    Click callback to validate `--shape`.

    Returns
    -------
    tuple
        (height, width)
    """

    for v in value:
        if not v >= 1:
            raise click.BadParameter('values must be >= 1')

    return value