Run CWL using a Workflow Execution Service (WES) endpoint

def _run_wes(args):
    """Run CWL using a Workflow Execution Service (WES) endpoint
    """
    main_file, json_file, project_name = _get_main_and_json(args.directory)
    main_file = _pack_cwl(main_file)
    if args.host and "stratus" in args.host:
        _run_wes_stratus(args, main_file, json_file)
    else:
        opts = ["--no-wait"]
        if args.host:
            opts += ["--host", args.host]
        if args.auth:
            opts += ["--auth", args.auth]
        cmd = ["wes-client"] + opts + [main_file, json_file]
        _run_tool(cmd)