def tag_pattern_option_validator(ctx, param, value):
    """The provided string must contain **{version}** placeholder in order to
    be valid. Otherwise :class:`click.UsageError` is raised.
    """
    if not value or '{version}' not in value:
        ctx.fail('Missing {version} placeholder in tag_pattern.')
    return value
