mirror of https://github.com/aria2/aria2
				
				
				
			2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Changed default value of -s option from 1 to 5. Also max value of -s option is changed from 5 to 16. * src/HelpItemFactory.cc * src/OptionHandlerFactory.cc * src/option_processing.cc * src/usage_text.hpull/1/head
							parent
							
								
									32edb40d7d
								
							
						
					
					
						commit
						de9605815d
					
				| 
						 | 
					@ -1,3 +1,12 @@
 | 
				
			||||||
 | 
					2008-06-09  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						Changed default value of -s option from 1 to 5.
 | 
				
			||||||
 | 
						Also max value of -s option is changed from 5 to 16.
 | 
				
			||||||
 | 
						* src/HelpItemFactory.cc
 | 
				
			||||||
 | 
						* src/OptionHandlerFactory.cc
 | 
				
			||||||
 | 
						* src/option_processing.cc
 | 
				
			||||||
 | 
						* src/usage_text.h
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2008-06-09  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 | 
					2008-06-09  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Changed -s options behavior. Now it means the number of connections
 | 
						Changed -s options behavior. Now it means the number of connections
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -70,6 +70,7 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op)
 | 
				
			||||||
#endif // HAVE_DAEMON
 | 
					#endif // HAVE_DAEMON
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    HelpItemHandle item(new HelpItem(PREF_SPLIT, TEXT_SPLIT));
 | 
					    HelpItemHandle item(new HelpItem(PREF_SPLIT, TEXT_SPLIT));
 | 
				
			||||||
 | 
					    item->setAvailableValues("1-16");
 | 
				
			||||||
    item->addTag(TAG_BASIC);
 | 
					    item->addTag(TAG_BASIC);
 | 
				
			||||||
    item->addTag(TAG_HTTP);
 | 
					    item->addTag(TAG_HTTP);
 | 
				
			||||||
    item->addTag(TAG_FTP);
 | 
					    item->addTag(TAG_FTP);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -86,7 +86,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
 | 
				
			||||||
  handlers.push_back(SH(new DefaultOptionHandler(PREF_DIR)));
 | 
					  handlers.push_back(SH(new DefaultOptionHandler(PREF_DIR)));
 | 
				
			||||||
  handlers.push_back(SH(new DefaultOptionHandler(PREF_OUT)));
 | 
					  handlers.push_back(SH(new DefaultOptionHandler(PREF_OUT)));
 | 
				
			||||||
  handlers.push_back(SH(new LogOptionHandler(PREF_LOG)));
 | 
					  handlers.push_back(SH(new LogOptionHandler(PREF_LOG)));
 | 
				
			||||||
  handlers.push_back(SH(new NumberOptionHandler(PREF_SPLIT, 1, 5)));
 | 
					  handlers.push_back(SH(new NumberOptionHandler(PREF_SPLIT, 1, 16)));
 | 
				
			||||||
  handlers.push_back(SH(new NumberOptionHandler(PREF_TIMEOUT, 1, 600)));
 | 
					  handlers.push_back(SH(new NumberOptionHandler(PREF_TIMEOUT, 1, 600)));
 | 
				
			||||||
  handlers.push_back(SH(new NumberOptionHandler(PREF_MAX_TRIES, 0)));
 | 
					  handlers.push_back(SH(new NumberOptionHandler(PREF_MAX_TRIES, 0)));
 | 
				
			||||||
  handlers.push_back(SH(new BooleanOptionHandler(PREF_FTP_PASV)));
 | 
					  handlers.push_back(SH(new BooleanOptionHandler(PREF_FTP_PASV)));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -76,7 +76,7 @@ Option* createDefaultOption()
 | 
				
			||||||
  Option* op = new Option();
 | 
					  Option* op = new Option();
 | 
				
			||||||
  op->put(PREF_STDOUT_LOG, V_FALSE);
 | 
					  op->put(PREF_STDOUT_LOG, V_FALSE);
 | 
				
			||||||
  op->put(PREF_DIR, ".");
 | 
					  op->put(PREF_DIR, ".");
 | 
				
			||||||
  op->put(PREF_SPLIT, "1");
 | 
					  op->put(PREF_SPLIT, "5");
 | 
				
			||||||
  op->put(PREF_DAEMON, V_FALSE);
 | 
					  op->put(PREF_DAEMON, V_FALSE);
 | 
				
			||||||
  op->put(PREF_SEGMENT_SIZE, Util::itos((int32_t)(1024*1024)));
 | 
					  op->put(PREF_SEGMENT_SIZE, Util::itos((int32_t)(1024*1024)));
 | 
				
			||||||
  op->put(PREF_LISTEN_PORT, "6881-6999");
 | 
					  op->put(PREF_LISTEN_PORT, "6881-6999");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -43,11 +43,12 @@ _(" -l, --log=LOG                The file name of the log file. If '-' is\n"\
 | 
				
			||||||
#define TEXT_DAEMON \
 | 
					#define TEXT_DAEMON \
 | 
				
			||||||
_(" -D, --daemon                 Run as daemon.")
 | 
					_(" -D, --daemon                 Run as daemon.")
 | 
				
			||||||
#define TEXT_SPLIT \
 | 
					#define TEXT_SPLIT \
 | 
				
			||||||
_(" -s, --split=N                Download a file using N connections. N must be\n"\
 | 
					_(" -s, --split=N                Download a file using N connections. If more\n"\
 | 
				
			||||||
  "                              between 1 and 5. This option affects all URLs.\n"\
 | 
					  "                              than N URLs are given, first N URLs are used and\n"\
 | 
				
			||||||
  "                              Thus, aria2 connects to each URL with\n"\
 | 
					  "                              remaining URLs are used for backup. If less than\n"\
 | 
				
			||||||
  "                              N connections.\n"\
 | 
					  "                              N URLs are given, some of the URLs are used more\n"\
 | 
				
			||||||
  "                              Default: 1")
 | 
					  "                              than once so that totaly N connections are made\n"\
 | 
				
			||||||
 | 
					  "                              simultaneously.")
 | 
				
			||||||
#define TEXT_RETRY_WAIT \
 | 
					#define TEXT_RETRY_WAIT \
 | 
				
			||||||
_(" --retry-wait=SEC             Set the seconds to wait to retry after an error\n"\
 | 
					_(" --retry-wait=SEC             Set the seconds to wait to retry after an error\n"\
 | 
				
			||||||
  "                              has occured. Specify a value between 0 and 60.\n"\
 | 
					  "                              has occured. Specify a value between 0 and 60.\n"\
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue