diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-07-20 19:14:00 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-07-20 19:14:16 +0200 |
commit | b88940850002a3f1c25bc6488b95ad30eb80d696 (patch) | |
tree | 9af44fc7571282e3adc379dbbff06d4d34c6c2b6 /src/tool_help.c | |
parent | 14a385b3aec7f2f1c6a5247cf41c785990dfb39e (diff) | |
download | curl-b88940850002a3f1c25bc6488b95ad30eb80d696.tar.gz |
curl: support parallel transfers
This is done by making sure each individual transfer is first added to a
linked list as then they can be performed serially, or at will, in
parallel.
Closes #3804
Diffstat (limited to 'src/tool_help.c')
-rw-r--r-- | src/tool_help.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tool_help.c b/src/tool_help.c index 9209a13dd..a8f285a00 100644 --- a/src/tool_help.c +++ b/src/tool_help.c @@ -273,6 +273,10 @@ static const struct helptxt helptext[] = { "OAuth 2 Bearer Token"}, {"-o, --output <file>", "Write to file instead of stdout"}, + {"-Z, --parallel", + "Perform transfers in parallel"}, + {" --parallel-max", + "Maximum concurrency for parallel transfers"}, {" --pass <phrase>", "Pass phrase for the private key"}, {" --path-as-is", @@ -602,8 +606,9 @@ void tool_version_info(void) } } -void tool_list_engines(CURL *curl) +void tool_list_engines(void) { + CURL *curl = curl_easy_init(); struct curl_slist *engines = NULL; /* Get the list of engines */ @@ -620,4 +625,5 @@ void tool_list_engines(CURL *curl) /* Cleanup the list of engines */ curl_slist_free_all(engines); + curl_easy_cleanup(curl); } |