mirror of https://github.com/aria2/aria2
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added usage message for --uri-selector, --server-stat-of, --server-stat-in, --server-stat-timeout options. * src/HelpItemFactory.cc * src/usage_text.hpull/1/head
parent
479a16edd6
commit
81b2e6e108
|
@ -1,3 +1,10 @@
|
||||||
|
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Added usage message for --uri-selector, --server-stat-of,
|
||||||
|
--server-stat-in, --server-stat-timeout options.
|
||||||
|
* src/HelpItemFactory.cc
|
||||||
|
* src/usage_text.h
|
||||||
|
|
||||||
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Added upper limit of FTP response buffer. The current implementation
|
Added upper limit of FTP response buffer. The current implementation
|
||||||
|
|
|
@ -534,6 +534,34 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op)
|
||||||
item->addTag(TAG_FTP);
|
item->addTag(TAG_FTP);
|
||||||
tc->addItem(item);
|
tc->addItem(item);
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
HelpItemHandle item(new HelpItem(PREF_URI_SELECTOR, TEXT_URI_SELECTOR,
|
||||||
|
op->get(PREF_URI_SELECTOR)));
|
||||||
|
item->addTag(TAG_HTTP);
|
||||||
|
item->addTag(TAG_FTP);
|
||||||
|
item->setAvailableValues(V_INORDER+","+V_FEEDBACK);
|
||||||
|
tc->addItem(item);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
HelpItemHandle item(new HelpItem(PREF_SERVER_STAT_OF, TEXT_SERVER_STAT_OF));
|
||||||
|
item->addTag(TAG_HTTP);
|
||||||
|
item->addTag(TAG_FTP);
|
||||||
|
tc->addItem(item);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
HelpItemHandle item(new HelpItem(PREF_SERVER_STAT_IF, TEXT_SERVER_STAT_IF));
|
||||||
|
item->addTag(TAG_HTTP);
|
||||||
|
item->addTag(TAG_FTP);
|
||||||
|
tc->addItem(item);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
HelpItemHandle item(new HelpItem(PREF_SERVER_STAT_TIMEOUT,
|
||||||
|
TEXT_SERVER_STAT_TIMEOUT,
|
||||||
|
"86400 (24hours)"));
|
||||||
|
item->addTag(TAG_HTTP);
|
||||||
|
item->addTag(TAG_FTP);
|
||||||
|
tc->addItem(item);
|
||||||
|
}
|
||||||
{
|
{
|
||||||
HelpItemHandle item(new HelpItem("help", TEXT_HELP, TAG_BASIC));
|
HelpItemHandle item(new HelpItem("help", TEXT_HELP, TAG_BASIC));
|
||||||
item->setAvailableValues
|
item->setAvailableValues
|
||||||
|
|
|
@ -372,4 +372,28 @@ _(" --max-file-not-found=NUM If aria2 recieves `file not found' status from
|
||||||
" Specify 0 to disable this option.\n"\
|
" Specify 0 to disable this option.\n"\
|
||||||
" This options is only effective only when using\n"\
|
" This options is only effective only when using\n"\
|
||||||
" HTTP/FTP servers.")
|
" HTTP/FTP servers.")
|
||||||
|
#define TEXT_URI_SELECTOR \
|
||||||
|
_(" --uri-selector=SELECTOR Specify URI selection algorithm. Possible values\n"\
|
||||||
|
" are 'inorder' and 'feedback'.\n"\
|
||||||
|
" If 'inorder' is given, URI is tried in the order\n"\
|
||||||
|
" appeared in the URI list.\n"\
|
||||||
|
" If 'feedback' is given, aria2 uses download speed\n"\
|
||||||
|
" observed in the previous downloads and choose\n"\
|
||||||
|
" fastest server in the URI list. This also\n"\
|
||||||
|
" effectively skips dead mirrors. The observed\n"\
|
||||||
|
" download speed is a part of performance profile\n"\
|
||||||
|
" of servers mentioned in --server-stat-of and\n"\
|
||||||
|
" --server-stat-if options.")
|
||||||
|
#define TEXT_SERVER_STAT_OF \
|
||||||
|
_(" --server-stat-of=FILE Specify the filename to which performance profile\n"\
|
||||||
|
" of the servers is saved. You can load saved data\n"\
|
||||||
|
" using --server-stat-if option.")
|
||||||
|
#define TEXT_SERVER_STAT_IF \
|
||||||
|
_(" --server-stat-if=FILE Specify the filename to load performance profile\n"\
|
||||||
|
" of the servers. The loaded data will be used in\n"\
|
||||||
|
" some URI selector such as 'feedback'.\n"\
|
||||||
|
" See also --uri-selector option")
|
||||||
|
#define TEXT_SERVER_STAT_TIMEOUT \
|
||||||
|
_(" --server-stat-timeout=SEC Specifies timeout in seconds to invalidate\n"\
|
||||||
|
" performance profile of the servers since the last\n"\
|
||||||
|
" contact to them.")
|
||||||
|
|
Loading…
Reference in New Issue