def validate_login(ctx, param, value):
    """Ensure that login is not blank."""
    # pylint: disable=unused-argument
    value = value.strip()
    if not value:
        raise click.BadParameter("The value cannot be blank.", param=param)
    return value
def validate_login ( ctx , param , value ) : value = value . strip ( ) if not value : raise click . BadParameter ( "The value cannot be blank." , param = param ) return value
Ensure that login is not blank.