def validate_page(ctx, param, value):
    """Ensure that a valid value for page is chosen."""
    # pylint: disable=unused-argument
    if value == 0:
        raise click.BadParameter(
            "Page is not zero-based, please set a value to 1 or higher.", param=param
        )
    return value
def validate_page ( ctx , param , value ) : if value == 0 : raise click . BadParameter ( "Page is not zero-based, please set a value to 1 or higher." , param = param ) return value
Ensure that a valid value for page is chosen.