Kaynağa Gözat

2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Added --reuse-uri option. This option has existed quite long, but
	been hidden.
	* doc/aria2c.1.txt
	* src/OptionHandlerFactory.cc
	* src/usage_text.h
Tatsuhiro Tsujikawa 15 yıl önce
ebeveyn
işleme
49169c93ba
6 değiştirilmiş dosya ile 39 ekleme ve 6 silme
  1. 8 0
      ChangeLog
  2. 8 2
      doc/aria2c.1
  3. 10 1
      doc/aria2c.1.html
  4. 5 0
      doc/aria2c.1.txt
  5. 5 3
      src/OptionHandlerFactory.cc
  6. 3 0
      src/usage_text.h

+ 8 - 0
ChangeLog

@@ -1,3 +1,11 @@
+2010-03-08  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Added --reuse-uri option. This option has existed quite long, but
+	been hidden.
+	* doc/aria2c.1.txt
+	* src/OptionHandlerFactory.cc
+	* src/usage_text.h
+
 2010-03-08  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Ignore filename parameter if it contains directory traversal

+ 8 - 2
doc/aria2c.1

@@ -2,12 +2,12 @@
 .\"     Title: aria2c
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
-.\"      Date: 03/07/2010
+.\"      Date: 03/08/2010
 .\"    Manual: Aria2 Manual
 .\"    Source: Aria2 1.9.0a
 .\"  Language: English
 .\"
-.TH "ARIA2C" "1" "03/07/2010" "Aria2 1\&.9\&.0a" "Aria2 Manual"
+.TH "ARIA2C" "1" "03/08/2010" "Aria2 1\&.9\&.0a" "Aria2 Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -212,6 +212,12 @@ Retrieve timestamp of the remote file from the remote HTTP/FTP server and if it
 \fIfalse\fR
 .RE
 .PP
+*\-\-reuse\-uri[=\fItrue\fR|\fIfalse\fR]
+.RS 4
+Reuse already used URIs if no unused URIs are left\&. Default:
+\fItrue\fR
+.RE
+.PP
 \fB\-\-server\-stat\-of\fR=FILE
 .RS 4
 Specify the filename to which performance profile of the servers is saved\&. You can load saved data using

+ 10 - 1
doc/aria2c.1.html

@@ -802,6 +802,15 @@ aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip"</td>
 </p>
 </dd>
 <dt class="hdlist1">
+*--reuse-uri[=<em>true</em>|<em>false</em>]
+</dt>
+<dd>
+<p>
+  Reuse already used URIs if no unused URIs are left.
+  Default: <em>true</em>
+</p>
+</dd>
+<dt class="hdlist1">
 <strong>--server-stat-of</strong>=FILE
 </dt>
 <dd>
@@ -3804,7 +3813,7 @@ files in the program, then also delete it here.</p></div>
 <div id="footnotes"><hr /></div>
 <div id="footer">
 <div id="footer-text">
-Last updated 2010-03-07 17:15:38 JST
+Last updated 2010-03-08 00:19:16 JST
 </div>
 </div>
 </body>

+ 5 - 0
doc/aria2c.1.txt

@@ -144,6 +144,11 @@ aria2c -o myfile.zip "http://mirror1/file.zip" "http://mirror2/file.zip"
   server and if it is available, apply it to the local file.
   Default: 'false'
 
+*--reuse-uri[='true'|'false']::
+
+  Reuse already used URIs if no unused URIs are left.
+  Default: 'true'
+
 *--server-stat-of*=FILE::
   Specify the filename to which performance profile of the servers is
   saved. You can load saved data using *--server-stat-if* option. See

+ 5 - 3
src/OptionHandlerFactory.cc

@@ -564,9 +564,11 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
   {
     SharedHandle<OptionHandler> op(new BooleanOptionHandler
                                    (PREF_REUSE_URI,
-                                    NO_DESCRIPTION,
-                                    V_TRUE));
-    op->hide();
+                                    TEXT_REUSE_URI,
+                                    V_TRUE,
+                                    OptionHandler::OPT_ARG));
+    op->addTag(TAG_FTP);
+    op->addTag(TAG_HTTP);
     handlers.push_back(op);
   }
   {

+ 3 - 0
src/usage_text.h

@@ -615,3 +615,6 @@
     "                              this option is not specified, the default\n" \
     "                              interface is chosen. You can specify interface\n" \
     "                              name and IP address.")
+#define TEXT_REUSE_URI                          \
+  _(" --reuse-uri[=true|false]     Reuse already used URIs if no unused URIs are\n" \
+    "                              left.")