import click


def validate_positive(ctx, param, value):
    """Check that param value is greater than 0."""
    if value < 0:
        raise click.BadParameter(f'must be greater than or equal to 0, currently {value}')
    return value