Преглед изворни кода

Improvements to --follow-torrent=false documentation.

gt пре 12 година
родитељ
комит
75d3e6f4dd
2 измењених фајлова са 11 додато и 3 уклоњено
  1. 8 1
      doc/manual-src/en/aria2c.rst
  2. 3 2
      src/usage_text.h

+ 8 - 1
doc/manual-src/en/aria2c.rst

@@ -767,7 +767,8 @@ BitTorrent Specific Options
   file and downloads files mentioned in it.
   If ``mem`` is specified, a torrent file is not written to the disk, but is just
   kept in memory.
-  If ``false`` is specified, the action mentioned above is not taken.
+  If ``false`` is specified, the ``.torrent`` file is downloaded to the disk, but
+  is not parsed as a torrent and its contents are not downloaded.
   Default: ``true``
 
 .. option:: -O, --index-out=<INDEX>=<PATH>
@@ -3644,6 +3645,12 @@ Download only selected files using index(usually called "selectable download")
 
   The index is printed to the console using -S option.
 
+Download .torrent file, but do not download its contents
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+.. code-block:: console
+
+  $ aria2c --follow-torrent=false "http://host/file.torrent"
+
 Specify output filename
 ^^^^^^^^^^^^^^^^^^^^^^^
 

+ 3 - 2
src/usage_text.h

@@ -268,8 +268,9 @@
     "                              mentioned in it.\n"                  \
     "                              If mem is specified, a torrent file is not\n" \
     "                              written to the disk, but is just kept in memory.\n" \
-    "                              If false is specified, the action mentioned above\n" \
-    "                              is not taken.")
+    "                              If false is specified, the .torrent file is\n" \
+    "                              downloaded to the disk, but is not parsed as a\n" \
+    "                              torrent and its contents are not downloaded.")
 #define TEXT_LISTEN_PORT                                                \
   _(" --listen-port=PORT...        Set TCP port number for BitTorrent downloads.\n" \
     "                              Multiple ports can be specified by using ',',\n" \