ソースを参照

* src/main.cc (main): Use StreamUriListParser and
FileUriListParser
instead of UriFileListParser.
(showUsage): Added 3 usage examples for metalink download.

Tatsuhiro Tsujikawa 18 年 前
コミット
823056f0dd
2 ファイル変更7 行追加0 行削除
  1. 1 0
      ChangeLog
  2. 6 0
      src/main.cc

+ 1 - 0
ChangeLog

@@ -7,6 +7,7 @@
 	* src/FileUriListParser.h: New class.
 	* src/main.cc (main): Use StreamUriListParser and FileUriListParser
 	instead of UriFileListParser.
+	(showUsage): Added 3 usage examples for metalink download.
 
 2007-07-04  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 

+ 6 - 0
src/main.cc

@@ -310,6 +310,12 @@ void showUsage() {
   cout << "  aria2c -M test.metalink" << endl;
   cout << _(" Metalink downloading with preferences:") << endl;
   cout << "  aria2c -M test.metalink --metalink-version=1.1.1 --metalink-language=en-US" << endl;
+  cout << _(" Download only selected files:") << endl;
+  cout << "  aria2c -T test.metalink --metalink-language=en-US dir/file1.zip dir/file2.zip" << endl;
+  cout << _(" Download only selected files using index:") << endl;
+  cout << "  aria2c -T test.metalink --metalink-language=en-US --select-file 1,3-5" << endl;
+  cout << _(" Print file listing of .metalink file:") << endl;
+  cout << "  aria2c -T test.torrent -S --metalink-language=en-US" << endl;
 #endif // ENABLE_METALINK
   cout << endl;
   printf(_("Report bugs to %s"), "<tujikawa at users dot sourceforge dot net>");