Added --metalink-base-uri option to -i list options.

pull/1/head
Tatsuhiro Tsujikawa 2011-05-16 22:45:53 +09:00
parent 653f04ef5c
commit 4dc71647f8
3 changed files with 4 additions and 1 deletions

View File

@ -1522,6 +1522,7 @@ of URIs. These optional lines must start with white space(s).
* *<<aria2_optref_use_head, use-head>>*
* *<<aria2_optref_user_agent, user-agent>>*
* *<<aria2_optref_retry_wait, retry-wait>>*
* *<<aria2_optref_metalink_base_uri, metalink-base-uri>>*
These options have exactly same meaning of the ones in the
command-line options, but it just applies to the URIs it belongs to.

View File

@ -212,6 +212,7 @@ OptionParser.new do |opt|
opt.on("--bt-tracker URIS"){|val| options["bt-tracker"]=val}
opt.on("--bt-exclude-tracker URIS"){|val| options["bt-exclude-tracker"]=val}
opt.on("--retry-wait SEC"){|val| options["retry-wait"]=val}
opt.on("--metalink-base-uri URI"){|val| options["metalink-base-uri"]=val}
opt.on("--max-overall-download-limit LIMIT"){|val| options["max-overall-download-limit"]=val}
opt.on("--max-overall-upload-limit LIMIT"){|val| options["max-overall-upload-limit"]=val}

View File

@ -166,7 +166,8 @@ const std::set<std::string>& listRequestOptions()
PREF_ENABLE_ASYNC_DNS6,
PREF_BT_TRACKER,
PREF_BT_EXCLUDE_TRACKER,
PREF_RETRY_WAIT
PREF_RETRY_WAIT,
PREF_METALINK_BASE_URI
};
static std::set<std::string> requestOptions
(vbegin(REQUEST_OPTIONS), vend(REQUEST_OPTIONS));