import click


def _validate_repo_name(ctx, param, value):
    """Callback used to check if repository argument was given."""
    if "/" not in value:
        raise click.BadParameter('Expected format for REPOSITORY is '
                                 '"<org_name>/<project_name>" (e.g "jcfr/sandbox")')
    return value