def METHOD_NAME(run_line, go_ep1_id, go_ep2_id):
    load_response_set("cli.get_submission_id")
    result = run_line(
        "globus transfer --exclude *.txt --batch - "
        "{}:/ {}:/".format(go_ep1_id, go_ep1_id),
        stdin="abc /def\n",
        assert_exit_code=2,
    )
    assert (
        "--include and --exclude can only be used with --recursive transfers"
        in result.stderr
    )