usage_text.h 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. /* <!-- copyright */
  2. /*
  3. * aria2 - The high speed download utility
  4. *
  5. * Copyright (C) 2006 Tatsuhiro Tsujikawa
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. *
  21. * In addition, as a special exception, the copyright holders give
  22. * permission to link the code of portions of this program with the
  23. * OpenSSL library under certain conditions as described in each
  24. * individual source file, and distribute linked combinations
  25. * including the two.
  26. * You must obey the GNU General Public License in all respects
  27. * for all of the code used other than OpenSSL. If you modify
  28. * file(s) with this exception, you may extend this exception to your
  29. * version of the file(s), but you are not obligated to do so. If you
  30. * do not wish to do so, delete this exception statement from your
  31. * version. If you delete this exception statement from all source
  32. * files in the program, then also delete it here.
  33. */
  34. /* copyright --> */
  35. #define TEXT_DIR \
  36. _(" -d, --dir=DIR The directory to store the downloaded file.")
  37. #define TEXT_OUT \
  38. _(" -o, --out=FILE The file name of the downloaded file.")
  39. #define TEXT_LOG \
  40. _(" -l, --log=LOG The file name of the log file. If '-' is\n"\
  41. " specified, log is written to stdout.")
  42. #define TEXT_DAEMON \
  43. _(" -D, --daemon Run as daemon.")
  44. #define TEXT_SPLIT \
  45. _(" -s, --split=N Download a file using N connections. If more\n"\
  46. " than N URLs are given, first N URLs are used and\n"\
  47. " remaining URLs are used for backup. If less than\n"\
  48. " N URLs are given, those URLs are used more than\n"\
  49. " once so that N connections total are made\n"\
  50. " simultaneously. Please see -j option too.\n"\
  51. " Please note that in Metalink download, this\n"\
  52. " option has no effect and use -C option instead.")
  53. #define TEXT_RETRY_WAIT \
  54. _(" --retry-wait=SEC Set the seconds to wait to retry after an error\n"\
  55. " has occured.")
  56. #define TEXT_TIMEOUT \
  57. _(" -t, --timeout=SEC Set timeout in seconds.")
  58. #define TEXT_MAX_TRIES \
  59. _(" -m, --max-tries=N Set number of tries. 0 means unlimited.")
  60. #define TEXT_HTTP_PROXY \
  61. _(" --http-proxy=PROXY Use this proxy server for HTTP.\n"\
  62. " See also --all-proxy option.\n"\
  63. " This affects all URLs.")
  64. #define TEXT_HTTPS_PROXY \
  65. _(" --https-proxy=PROXY Use this proxy server for HTTPS.\n"\
  66. " See also --all-proxy option.\n"\
  67. " This affects all URLs.")
  68. #define TEXT_FTP_PROXY \
  69. _(" --ftp-proxy=PROXY Use this proxy server for FTP.\n"\
  70. " See also --all-proxy option.\n"\
  71. " This affects all URLs.")
  72. #define TEXT_ALL_PROXY \
  73. _(" --all-proxy=PROXY Use this proxy server for all protocols.\n"\
  74. " You can override this setting and specify a\n"\
  75. " proxy server for a particular protocol using\n"\
  76. " --http-proxy, --https-proxy and --ftp-proxy\n"\
  77. " options.\n"\
  78. " This affects all URLs.")
  79. #define TEXT_HTTP_USER \
  80. _(" --http-user=USER Set HTTP user. This affects all URLs.")
  81. #define TEXT_HTTP_PASSWD \
  82. _(" --http-passwd=PASSWD Set HTTP password. This affects all URLs.")
  83. #define TEXT_PROXY_METHOD \
  84. _(" --proxy-method=METHOD Set the method to use in proxy request.")
  85. #define TEXT_HTTP_AUTH_SCHEME \
  86. _(" --http-auth-scheme=SCHEME Set HTTP authentication scheme. Currently, basic\n"\
  87. " is the only supported scheme.")
  88. #define TEXT_REFERER \
  89. _(" --referer=REFERER Set Referer. This affects all URLs.")
  90. #define TEXT_FTP_USER \
  91. _(" --ftp-user=USER Set FTP user. This affects all URLs.")
  92. #define TEXT_FTP_PASSWD \
  93. _(" --ftp-passwd=PASSWD Set FTP password. This affects all URLs.")
  94. #define TEXT_FTP_TYPE \
  95. _(" --ftp-type=TYPE Set FTP transfer type.")
  96. #define TEXT_FTP_PASV \
  97. _(" -p, --ftp-pasv[=true|false] Use the passive mode in FTP. If false is given,\n"\
  98. " the active mode will be used.")
  99. #define TEXT_LOWEST_SPEED_LIMIT \
  100. _(" --lowest-speed-limit=SPEED Close connection if download speed is lower than\n"\
  101. " or equal to this value(bytes per sec).\n"\
  102. " 0 means aria2 does not have a lowest speed limit.\n"\
  103. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  104. " This option does not affect BitTorrent downloads.")
  105. #define TEXT_MAX_DOWNLOAD_LIMIT \
  106. _(" --max-download-limit=SPEED Set max download speed in bytes per sec.\n"\
  107. " 0 means unrestricted.\n"\
  108. " You can append K or M(1K = 1024, 1M = 1024K).")
  109. #define TEXT_FILE_ALLOCATION \
  110. _(" --file-allocation=METHOD Specify file allocation method.\n"\
  111. " 'none' doesn't pre-allocate file space. 'prealloc'\n"\
  112. " pre-allocates file space before download begins.\n"\
  113. " This may take some time depending on the size of\n"\
  114. " the file.")
  115. #define TEXT_NO_FILE_ALLOCATION_LIMIT \
  116. _(" --no-file-allocation-limit=SIZE No file allocation is made for files whose\n"\
  117. " size is smaller than SIZE.\n"\
  118. " You can append K or M(1K = 1024, 1M = 1024K).")
  119. # define TEXT_ENABLE_DIRECT_IO \
  120. _(" --enable-direct-io[=true|false] Enable directI/O, which lowers cpu usage while\n"\
  121. " allocating files.\n"\
  122. " Turn off if you encounter any error")
  123. #define TEXT_ALLOW_OVERWRITE \
  124. _(" --allow-overwrite=true|false If false, aria2 doesn't download a file which\n"\
  125. " already exists but the corresponding .aria2 file\n"\
  126. " doesn't exist.")
  127. #define TEXT_ALLOW_PIECE_LENGTH_CHANGE \
  128. _(" --allow-piece-length-change=true|false If false is given, aria2 aborts download\n"\
  129. " when a piece length is different from one in\n"\
  130. " a control file. If true is given, you can proceed\n"\
  131. " but some download progress will be lost.")
  132. #define TEXT_FORCE_SEQUENTIAL \
  133. _(" -Z, --force-sequential[=true|false] Fetch URIs in the command-line sequentially\n"\
  134. " and download each URI in a separate session, like\n"\
  135. " the usual command-line download utilities.")
  136. #define TEXT_AUTO_FILE_RENAMING \
  137. _(" --auto-file-renaming[=true|false] Rename file name if the same file already\n"\
  138. " exists. This option works only in http(s)/ftp\n"\
  139. " download.\n"\
  140. " The new file name has a dot and a number(1..9999)\n"\
  141. " appended.")
  142. #define TEXT_PARAMETERIZED_URI \
  143. _(" -P, --parameterized-uri[=true|false] Enable parameterized URI support.\n"\
  144. " You can specify set of parts:\n"\
  145. " http://{sv1,sv2,sv3}/foo.iso\n"\
  146. " Also you can specify numeric sequences with step\n"\
  147. " counter:\n"\
  148. " http://host/image[000-100:2].img\n"\
  149. " A step counter can be omitted.\n"\
  150. " If all URIs do not point to the same file, such\n"\
  151. " as the second example above, -Z option is\n"\
  152. " required.")
  153. #define TEXT_ENABLE_HTTP_KEEP_ALIVE \
  154. _(" --enable-http-keep-alive[=true|false] Enable HTTP/1.1 persistent connection.")
  155. #define TEXT_ENABLE_HTTP_PIPELINING \
  156. _(" --enable-http-pipelining[=true|false] Enable HTTP/1.1 pipelining.")
  157. #define TEXT_CHECK_INTEGRITY \
  158. _(" -V, --check-integrity[=true|false] Check file integrity by validating piece\n"\
  159. " hashes. This option has effect only in BitTorrent\n"\
  160. " and Metalink downloads with chunk checksums.\n"\
  161. " Use this option to re-download a damaged portion\n"\
  162. " of a file. See also --bt-hash-check-seed option.")
  163. #define TEXT_BT_HASH_CHECK_SEED \
  164. _(" --bt-hash-check-seed[=true|false] If true is given, after hash check using\n"\
  165. " --check-integrity option and file is complete,\n"\
  166. " continue to seed file. If you want to check file\n"\
  167. " and download it only when it is damaged or\n"\
  168. " incomplete, set this option to false.\n"\
  169. " This option has effect only on BitTorrent\n"\
  170. " download.")
  171. #define TEXT_REALTIME_CHUNK_CHECKSUM \
  172. _(" --realtime-chunk-checksum=true|false Validate chunk of data by calculating\n"\
  173. " checksum while downloading a file if chunk\n"\
  174. " checksums are provided.")
  175. #define TEXT_CONTINUE \
  176. _(" -c, --continue Continue downloading a partially downloaded\n"\
  177. " file. Use this option to resume a download\n"\
  178. " started by a web browser or another program\n"\
  179. " which downloads files sequentially from the\n"\
  180. " beginning. Currently this option is only\n"\
  181. " applicable to http(s)/ftp downloads.")
  182. #define TEXT_USER_AGENT \
  183. _(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
  184. #define TEXT_NO_NETRC \
  185. _(" -n, --no-netrc Disables netrc support.")
  186. #define TEXT_INPUT_FILE \
  187. _(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n"\
  188. " multiple URIs for a single entity: separate\n"\
  189. " URIs on a single line using the TAB character.\n"\
  190. " Reads input from stdin when '-' is specified.\n"\
  191. " The additional out and dir options can be\n"\
  192. " specified after each line of URIs. This optional\n"\
  193. " line must start with white space(s). See INPUT\n"\
  194. " FILE section of man page for details.")
  195. #define TEXT_MAX_CONCURRENT_DOWNLOADS \
  196. _(" -j, --max-concurrent-downloads=N Set maximum number of parallel downloads for\n"\
  197. " every static (HTTP/FTP) URL, torrent and metalink.\n"\
  198. " See also -s and -C options.")
  199. #define TEXT_LOAD_COOKIES \
  200. _(" --load-cookies=FILE Load Cookies from FILE using the Firefox3 format\n"\
  201. " and Mozilla/Firefox(1.x/2.x)/Netscape format.")
  202. #define TEXT_SHOW_FILES \
  203. _(" -S, --show-files Print file listing of .torrent or .metalink file\n"\
  204. " and exit. More detailed information will be listed\n"\
  205. " in case of torrent file.")
  206. #define TEXT_SELECT_FILE \
  207. _(" --select-file=INDEX... Set file to download by specifying its index.\n"\
  208. " You can find the file index using the\n"\
  209. " --show-files option. Multiple indexes can be\n"\
  210. " specified by using ',', for example: \"3,6\".\n"\
  211. " You can also use '-' to specify a range: \"1-5\".\n"\
  212. " ',' and '-' can be used together.\n"\
  213. " When used with the -M option, index may vary\n"\
  214. " depending on the query(see --metalink-* options).")
  215. #define TEXT_TORRENT_FILE \
  216. _(" -T, --torrent-file=TORRENT_FILE The path to the .torrent file.")
  217. #define TEXT_FOLLOW_TORRENT \
  218. _(" --follow-torrent=true|false|mem If true or mem is specified, when a file\n"\
  219. " whose suffix is .torrent or content type is\n"\
  220. " application/x-bittorrent is downloaded, aria2\n"\
  221. " parses it as a torrent file and downloads files\n"\
  222. " mentioned in it.\n"\
  223. " If mem is specified, a torrent file is not\n"\
  224. " written to the disk, but is just kept in memory.\n"\
  225. " If false is specified, the action mentioned above\n"\
  226. " is not taken.")
  227. #define TEXT_DIRECT_FILE_MAPPING \
  228. _(" --direct-file-mapping=true|false Directly read from and write to each file\n"\
  229. " mentioned in .torrent file.")
  230. #define TEXT_LISTEN_PORT \
  231. _(" --listen-port=PORT... Set TCP port number for BitTorrent downloads.\n"\
  232. " Multiple ports can be specified by using ',',\n"\
  233. " for example: \"6881,6885\". You can also use '-'\n"\
  234. " to specify a range: \"6881-6999\". ',' and '-' can\n"\
  235. " be used together.")
  236. #define TEXT_MAX_OVERALL_UPLOAD_LIMIT \
  237. _(" --max-overall-upload-limit=SPEED Set max overall upload speed in bytes/sec.\n"\
  238. " 0 means unrestricted.\n"\
  239. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  240. " To limit the upload speed per torrent, use\n"\
  241. " --max-upload-limit option. If non-zero value is\n"\
  242. " specified, --max-upload-limit option is ignored.")
  243. #define TEXT_MAX_UPLOAD_LIMIT \
  244. _(" -u, --max-upload-limit=SPEED Set max upload speed per each torrent in\n"\
  245. " bytes/sec. 0 means unrestricted.\n"\
  246. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  247. " To limit the overall upload speed, use\n"\
  248. " --max-overall-upload-limit option.")
  249. #define TEXT_SEED_TIME \
  250. _(" --seed-time=MINUTES Specify seeding time in minutes. Also see the\n"\
  251. " --seed-ratio option.")
  252. #define TEXT_SEED_RATIO \
  253. _(" --seed-ratio=RATIO Specify share ratio. Seed completed torrents\n"\
  254. " until share ratio reaches RATIO.\n"\
  255. " You are strongly encouraged to specify equals or\n"\
  256. " more than 1.0 here. Specify 0.0 if you intend to\n"\
  257. " do seeding regardless of share ratio.\n" \
  258. " If --seed-time option is specified along with\n"\
  259. " this option, seeding ends when at least one of\n"\
  260. " the conditions is satisfied.")
  261. #define TEXT_PEER_ID_PREFIX \
  262. _(" --peer-id-prefix=PEERI_ID_PREFIX Specify the prefix of peer ID. The peer ID in\n"\
  263. " BitTorrent is 20 byte length. If more than 20\n"\
  264. " bytes are specified, only first 20\n"\
  265. " bytes are used. If less than 20 bytes are\n"\
  266. " specified, the random alphabet characters are\n"\
  267. " added to make it's length 20 bytes.")
  268. #define TEXT_ENABLE_PEER_EXCHANGE \
  269. _(" --enable-peer-exchange[=true|false] Enable Peer Exchange extension.")
  270. #define TEXT_ENABLE_DHT \
  271. _(" --enable-dht[=true|false] Enable DHT functionality.")
  272. #define TEXT_DHT_LISTEN_PORT \
  273. _(" --dht-listen-port=PORT... Set UDP listening port for DHT.\n"\
  274. " Multiple ports can be specified by using ',',\n"\
  275. " for example: \"6881,6885\". You can also use '-'\n"\
  276. " to specify a range: \"6881-6999\". ',' and '-' can\n"\
  277. " be used together.")
  278. #define TEXT_DHT_ENTRY_POINT \
  279. _(" --dht-entry-point=HOST:PORT Set host and port as an entry point to DHT\n"\
  280. " network.")
  281. #define TEXT_DHT_FILE_PATH \
  282. _(" --dht-file-path=PATH Change the DHT routing table file to PATH.")
  283. #define TEXT_BT_MIN_CRYPTO_LEVEL \
  284. _(" --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n"\
  285. " If several encryption methods are provided by a\n"\
  286. " peer, aria2 chooses the lowest one which satisfies\n"\
  287. " the given level.")
  288. #define TEXT_BT_REQUIRE_CRYPTO \
  289. _(" --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"\
  290. " establish connection with legacy BitTorrent\n"\
  291. " handshake. Thus aria2 always uses Obfuscation\n"\
  292. " handshake.")
  293. #define TEXT_BT_REQUEST_PEER_SPEED_LIMIT \
  294. _(" --bt-request-peer-speed-limit=SPEED If the whole download speed of every\n"\
  295. " torrent is lower than SPEED, aria2 temporarily\n"\
  296. " increases the number of peers to try for more\n"\
  297. " download speed. Configuring this option with your\n"\
  298. " preferred download speed can increase your\n"\
  299. " download speed in some cases.\n"\
  300. " You can append K or M(1K = 1024, 1M = 1024K).")
  301. #define TEXT_BT_MAX_OPEN_FILES \
  302. _(" --bt-max-open-files=NUM Specify maximum number of files to open in each\n"\
  303. " BitTorrent download.")
  304. #define TEXT_BT_SEED_UNVERIFIED \
  305. _(" --bt-seed-unverified[=true|false] Seed previously downloaded files without\n"\
  306. " verifying piece hashes.")
  307. #define TEXT_BT_MAX_PEERS \
  308. _(" --bt-max-peers=NUM Specify the maximum number of peers per torrent.\n"\
  309. " 0 means unlimited.\n"\
  310. " See also --bt-request-peer-speed-limit option.")
  311. #define TEXT_METALINK_FILE \
  312. _(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file.")
  313. #define TEXT_METALINK_SERVERS \
  314. _(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\
  315. " simultaneously. Some Metalinks regulate the\n"\
  316. " number of servers to connect. aria2 strictly\n"\
  317. " respects them. This means that if Metalink defines\n"\
  318. " the maxconnections attribute lower than\n"\
  319. " NUM_SERVERS, then aria2 uses the value of\n"\
  320. " maxconnections attribute instead of NUM_SERVERS.\n"\
  321. " See also -s and -j options.")
  322. #define TEXT_METALINK_VERSION \
  323. _(" --metalink-version=VERSION The version of the file to download.")
  324. #define TEXT_METALINK_LANGUAGE \
  325. _(" --metalink-language=LANGUAGE The language of the file to download.")
  326. #define TEXT_METALINK_OS \
  327. _(" --metalink-os=OS The operating system of the file to download.")
  328. #define TEXT_METALINK_LOCATION \
  329. _(" --metalink-location=LOCATION[,...] The location of the preferred server.\n"\
  330. " A comma-delimited list of locations is\n"\
  331. " acceptable.")
  332. #define TEXT_METALINK_PREFERRED_PROTOCOL \
  333. _(" --metalink-preferred-protocol=PROTO Specify preferred protocol. Specify 'none'\n"\
  334. " if you don't have any preferred protocol.")
  335. #define TEXT_FOLLOW_METALINK \
  336. _(" --follow-metalink=true|false|mem If true or mem is specified, when a file\n"\
  337. " whose suffix is .metaink or content type of\n"\
  338. " application/metalink+xml is downloaded, aria2\n"\
  339. " parses it as a metalink file and downloads files\n"\
  340. " mentioned in it.\n"\
  341. " If mem is specified, a metalink file is not\n"\
  342. " written to the disk, but is just kept in memory.\n"\
  343. " If false is specified, the action mentioned above\n"\
  344. " is not taken.")
  345. #define TEXT_METALINK_ENABLE_UNIQUE_PROTOCOL \
  346. _(" --metalink-enable-unique-protocol=true|false If true is given and several\n"\
  347. " protocols are available for a mirror in a metalink\n"\
  348. " file, aria2 uses one of them.\n"\
  349. " Use --metalink-preferred-protocol option to\n"\
  350. " specify the preference of protocol.")
  351. #define TEXT_VERSION \
  352. _(" -v, --version Print the version number and exit.")
  353. #define TEXT_HELP \
  354. _(" -h, --help[=CATEGORY] Print usage and exit.\n"\
  355. " The help messages are classified in several\n"\
  356. " categories. For example, type \"--help=http\" for\n"\
  357. " detailed explanation for the options related to\n"\
  358. " http. If no matching category is found, search\n"\
  359. " option name using a given word in middle match\n"\
  360. " and print the result.")
  361. #define TEXT_NO_CONF \
  362. _(" --no-conf Disable loading aria2.conf file.")
  363. #define TEXT_CONF_PATH \
  364. _(" --conf-path=PATH Change the configuration file path to PATH.")
  365. #define TEXT_STOP \
  366. _(" --stop=SEC Stop application after SEC seconds has passed.\n" \
  367. " If 0 is given, this feature is disabled.")
  368. #define TEXT_HEADER \
  369. _(" --header=HEADER Append HEADER to HTTP request header. You can use\n"\
  370. " this option repeatedly to specify more than one\n"\
  371. " header:\n"\
  372. " aria2c --header=\"X-A: b78\" --header=\"X-B: 9J1\"\n"\
  373. " http://host/file")
  374. #define TEXT_QUIET \
  375. _(" -q, --quiet[=true|false] Make aria2 quiet(no console output).")
  376. #define TEXT_ASYNC_DNS \
  377. _(" --async-dns[=true|false] Enable asynchronous DNS.")
  378. #define TEXT_FTP_REUSE_CONNECTION \
  379. _(" --ftp-reuse-connection[=true|false] Reuse connection in FTP.")
  380. #define TEXT_SUMMARY_INTERVAL \
  381. _(" --summary-interval=SEC Set interval to output download progress summary.\n"\
  382. " Setting 0 suppresses the output.")
  383. #define TEXT_LOG_LEVEL \
  384. _(" --log-level=LEVEL Set log level to output.")
  385. #define TEXT_REMOTE_TIME \
  386. _(" -R, --remote-time[=true|false] Retrieve timestamp of the remote file from the\n"\
  387. " remote HTTP/FTP server and if it is available,\n"\
  388. " apply it to the local file.")
  389. #define TEXT_CONNECT_TIMEOUT \
  390. _(" --connect-timeout=SEC Set the connect timeout in seconds to establish\n"\
  391. " connection to HTTP/FTP/proxy server. After the\n"\
  392. " connection is established, this option makes no\n"\
  393. " effect and --timeout option is used instead.")
  394. #define TEXT_MAX_FILE_NOT_FOUND \
  395. _(" --max-file-not-found=NUM If aria2 receives `file not found' status from the\n"\
  396. " remote HTTP/FTP servers NUM times without getting\n"\
  397. " a single byte, then force the download to fail.\n"\
  398. " Specify 0 to disable this option.\n"\
  399. " This options is effective only when using\n"\
  400. " HTTP/FTP servers.")
  401. #define TEXT_URI_SELECTOR \
  402. _(" --uri-selector=SELECTOR Specify URI selection algorithm.\n"\
  403. " If 'inorder' is given, URI is tried in the order\n"\
  404. " appeared in the URI list.\n"\
  405. " If 'feedback' is given, aria2 uses download speed\n"\
  406. " observed in the previous downloads and choose\n"\
  407. " fastest server in the URI list. This also\n"\
  408. " effectively skips dead mirrors. The observed\n"\
  409. " download speed is a part of performance profile\n"\
  410. " of servers mentioned in --server-stat-of and\n"\
  411. " --server-stat-if options.\n"\
  412. " If 'adaptive' is given, selects one of the best\n"\
  413. " mirrors for the first and reserved connections.\n"\
  414. " For supplementary ones, it returns mirrors which\n" \
  415. " has not been tested yet, and if each of them has\n"\
  416. " already been tested, returns mirrors which has to\n"\
  417. " be tested again. Otherwise, it doesn't select\n"\
  418. " anymore mirrors. Like 'feedback', it uses a\n"\
  419. " performance profile of servers.")
  420. #define TEXT_SERVER_STAT_OF \
  421. _(" --server-stat-of=FILE Specify the filename to which performance profile\n"\
  422. " of the servers is saved. You can load saved data\n"\
  423. " using --server-stat-if option.")
  424. #define TEXT_SERVER_STAT_IF \
  425. _(" --server-stat-if=FILE Specify the filename to load performance profile\n"\
  426. " of the servers. The loaded data will be used in\n"\
  427. " some URI selector such as 'feedback'.\n"\
  428. " See also --uri-selector option")
  429. #define TEXT_SERVER_STAT_TIMEOUT \
  430. _(" --server-stat-timeout=SEC Specifies timeout in seconds to invalidate\n"\
  431. " performance profile of the servers since the last\n"\
  432. " contact to them.")
  433. #define TEXT_AUTO_SAVE_INTERVAL \
  434. _(" --auto-save-interval=SEC Save a control file(*.aria2) every SEC seconds.\n"\
  435. " If 0 is given, a control file is not saved during\n"\
  436. " download. aria2 saves a control file when it stops\n"\
  437. " regardless of the value.")
  438. #define TEXT_CERTIFICATE \
  439. _(" --certificate=FILE Use the client certificate in FILE.\n"\
  440. " The certificate must be in PEM format.\n"\
  441. " You may use --private-key option to specify the\n"\
  442. " private key.")
  443. #define TEXT_PRIVATE_KEY \
  444. _(" --private-key=FILE Use the private key in FILE.\n"\
  445. " The private key must be decrypted and in PEM\n"\
  446. " format. See also --certificate option.")
  447. #define TEXT_CA_CERTIFICATE \
  448. _(" --ca-certificate=FILE Use the certificate authorities in FILE to verify\n"\
  449. " the peers. The certificate file must be in PEM\n"\
  450. " format and can contain multiple CA certificates.\n"\
  451. " Use --check-certificate option to enable\n"\
  452. " verification.")
  453. #define TEXT_CHECK_CERTIFICATE \
  454. _(" --check-certificate[=true|false] Verify the peer using certificates specified\n"\
  455. " in --ca-certificate option.")
  456. #define TEXT_NO_PROXY \
  457. _(" --no-proxy=DOMAINS Specify comma separated hostnames or domains where\n"\
  458. " proxy should not be used.")
  459. #define TEXT_USE_HEAD \
  460. _(" --use-head[=true|false] Use HEAD method for the first request to the HTTP\n"\
  461. " server.")
  462. #define TEXT_EVENT_POLL \
  463. _(" --event-poll=POLL Specify the method for polling events.")
  464. #define TEXT_HTTP_SERVER_LISTEN_PORT \
  465. " --http-server-listen-port=PORT Specify a port number for the built-in HTTP\n"\
  466. " Server to listen to."
  467. // Excluded from translation candidiates because it is subject to change.
  468. #define TEXT_ENABLE_HTTP_SERVER \
  469. " --enable-http-server[=true|false] Enable the built-in HTTP server. Currently,\n"\
  470. " this is the experimental feature and it just\n"\
  471. " provides the current download progress. Use your\n"\
  472. " web browser(console-based ones, such as elinks,\n"\
  473. " w3m, are recommended) to connect the server and\n"\
  474. " see what's what."
  475. #define TEXT_BT_EXTERNAL_IP \
  476. _(" --bt-external-ip=IPADDRESS Specify the external IP address to report to a\n"\
  477. " BitTorrent tracker. Although this function is\n"\
  478. " named 'external', it can accept any kind of IP\n"\
  479. " addresses.")