2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Changed the default value of -j option to 1.
	* src/HelpItemFactory.cc
	* src/option_processing.cc
	* src/usage_text.h
pull/1/head
Tatsuhiro Tsujikawa 2008-05-09 14:52:25 +00:00
parent f25436725e
commit 5bed29e79a
4 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Changed the default value of -j option to 1.
* src/HelpItemFactory.cc
* src/option_processing.cc
* src/usage_text.h
2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added the ability to reuse connection in FTP and it is enabled by

View File

@ -266,8 +266,8 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op)
tc->addItem(item);
}
{
HelpItemHandle item(new HelpItem(PREF_MAX_CONCURRENT_DOWNLOADS, TEXT_MAX_CONCURRENT_DOWNLOADS));
item->addTag(TAG_ADVANCED);
HelpItemHandle item(new HelpItem(PREF_MAX_CONCURRENT_DOWNLOADS, TEXT_MAX_CONCURRENT_DOWNLOADS, op->get(PREF_MAX_CONCURRENT_DOWNLOADS)));
item->addTag(TAG_BASIC);
tc->addItem(item);
}
{

View File

@ -123,7 +123,7 @@ Option* createDefaultOption()
op->put(PREF_CONTINUE, V_FALSE);
op->put(PREF_USER_AGENT, "aria2");
op->put(PREF_NO_NETRC, V_FALSE);
op->put(PREF_MAX_CONCURRENT_DOWNLOADS, "5");
op->put(PREF_MAX_CONCURRENT_DOWNLOADS, "1");
op->put(PREF_DIRECT_DOWNLOAD_TIMEOUT, "300");
op->put(PREF_FORCE_SEQUENTIAL, V_FALSE);
op->put(PREF_AUTO_FILE_RENAMING, V_TRUE);

View File

@ -188,9 +188,7 @@ _(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n
" URIs on a single line using the TAB character.\n"\
" Reads input from stdin when '-' is specified.")
#define TEXT_MAX_CONCURRENT_DOWNLOADS \
_(" -j, --max-concurrent-downloads=N Set maximum number of concurrent downloads.\n"\
" It should be used with the -i option.\n"\
" Default: 5")
_(" -j, --max-concurrent-downloads=N Set maximum number of parallel downloads.")
#define TEXT_LOAD_COOKIES \
_(" --load-cookies=FILE Load cookies from FILE. The format of FILE is\n"\
" the same used by Netscape and Mozilla.")