mirror of https://github.com/aria2/aria2
Made --download-result, --save-session, --server-stat-of and
--save-cookies option available in aria2.changeGlobalOption.pull/2/head
parent
23a83deb4f
commit
2ef6b34e60
|
@ -2849,13 +2849,19 @@ Description
|
|||
+++++++++++
|
||||
|
||||
This method changes global options dynamically. 'options' is of type
|
||||
struct and the available options are
|
||||
*<<aria2_optref_max_concurrent_downloads, max-concurrent-downloads>>*,
|
||||
*<<aria2_optref_max_download_result, max-download-result>>*,
|
||||
*<<aria2_optref_max_overall_download_limit, max-overall-download-limit>>*,
|
||||
*<<aria2_optref_max_overall_upload_limit, max-overall-upload-limit>>*,
|
||||
*<<aria2_optref_log_level, log-level>>*
|
||||
and *<<aria2_optref_log, log>>*.
|
||||
struct and the available options are:
|
||||
|
||||
* *<<aria2_optref_download_result, download-result>>*
|
||||
* *<<aria2_optref_log, log>>*
|
||||
* *<<aria2_optref_log_level, log-level>>*
|
||||
* *<<aria2_optref_max_concurrent_downloads, max-concurrent-downloads>>*
|
||||
* *<<aria2_optref_max_download_result, max-download-result>>*
|
||||
* *<<aria2_optref_max_overall_download_limit, max-overall-download-limit>>*
|
||||
* *<<aria2_optref_max_overall_upload_limit, max-overall-upload-limit>>*
|
||||
* *<<aria2_optref_save_cookies, save-cookies>>*
|
||||
* *<<aria2_optref_save_session, save-session>>*
|
||||
* *<<aria2_optref_server_stat_of, server-stat-of>>*
|
||||
|
||||
Using *<<aria2_optref_log, log>>* option, you can dynamically start logging or
|
||||
change log file. To stop logging, give empty string("") as a parameter
|
||||
value. Note that log file is always opened in append mode. This method
|
||||
|
|
|
@ -227,6 +227,10 @@ OptionParser.new do |opt|
|
|||
opt.on("-j","--max-concurrent-downloads N"){|val| options["max-concurrent-downloads"]=val}
|
||||
opt.on("-l","--log FILE"){|val| options["log"]=val}
|
||||
opt.on("--max-download-result NUM"){|val| options["max-download-result"]=val}
|
||||
opt.on("--download-result OPT"){|val| options["download-result"]=val}
|
||||
opt.on("--save-session FILE"){|val| options["save-session"]=val}
|
||||
opt.on("--server-stat-of FILE"){|val| options["server-stat-of"]=val}
|
||||
opt.on("--save-cookies FILE"){|val| options["save-cookies"]=val}
|
||||
|
||||
opt.on("--server SERVER", "hostname of XML-RPC server. Default: localhost"){|val| options["server"]=val }
|
||||
opt.on("--port PORT", "port of XML-RPC server. Default: 6800"){|val| options["port"]=val }
|
||||
|
|
|
@ -224,6 +224,7 @@ OptionHandlerFactory::createOptionHandlers()
|
|||
A2_V_DEFAULT,
|
||||
A2_V_FULL));
|
||||
op->addTag(TAG_ADVANCED);
|
||||
op->setChangeGlobalOption(true);
|
||||
handlers.push_back(op);
|
||||
}
|
||||
#ifdef ENABLE_ASYNC_DNS
|
||||
|
@ -605,6 +606,7 @@ OptionHandlerFactory::createOptionHandlers()
|
|||
NO_DEFAULT_VALUE,
|
||||
PATH_TO_FILE));
|
||||
op->addTag(TAG_ADVANCED);
|
||||
op->setChangeGlobalOption(true);
|
||||
handlers.push_back(op);
|
||||
}
|
||||
{
|
||||
|
@ -863,6 +865,7 @@ OptionHandlerFactory::createOptionHandlers()
|
|||
PATH_TO_FILE));
|
||||
op->addTag(TAG_FTP);
|
||||
op->addTag(TAG_HTTP);
|
||||
op->setChangeGlobalOption(true);
|
||||
handlers.push_back(op);
|
||||
}
|
||||
{
|
||||
|
@ -1101,6 +1104,7 @@ OptionHandlerFactory::createOptionHandlers()
|
|||
PATH_TO_FILE));
|
||||
op->addTag(TAG_HTTP);
|
||||
op->addTag(TAG_COOKIE);
|
||||
op->setChangeGlobalOption(true);
|
||||
handlers.push_back(op);
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue