usage_text.h 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882
  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. When -Z\n"\
  39. " option is used, this option is ignored.")
  40. #define TEXT_LOG \
  41. _(" -l, --log=LOG The file name of the log file. If '-' is\n" \
  42. " specified, log is written to stdout.")
  43. #define TEXT_DAEMON \
  44. _(" -D, --daemon[=true|false] Run as daemon. The current working directory will\n" \
  45. " be changed to \"/\" and standard input, standard\n" \
  46. " output and standard error will be redirected to\n" \
  47. " \"/dev/null\".")
  48. #define TEXT_SPLIT \
  49. _(" -s, --split=N Download a file using N connections. If more\n" \
  50. " than N URLs are given, first N URLs are used and\n" \
  51. " remaining URLs are used for backup. If less than\n" \
  52. " N URLs are given, those URLs are used more than\n" \
  53. " once so that N connections total are made\n" \
  54. " simultaneously. The number of connections to the\n" \
  55. " same host is restricted by\n" \
  56. " --max-connection-per-server option. See also\n" \
  57. " --min-split-size option.")
  58. #define TEXT_RETRY_WAIT \
  59. _(" --retry-wait=SEC Set the seconds to wait between retries. \n" \
  60. " With SEC > 0, aria2 will retry download when the\n" \
  61. " HTTP server returns 503 response.")
  62. #define TEXT_TIMEOUT \
  63. _(" -t, --timeout=SEC Set timeout in seconds.")
  64. #define TEXT_MAX_TRIES \
  65. _(" -m, --max-tries=N Set number of tries. 0 means unlimited.")
  66. #define TEXT_HTTP_PROXY \
  67. _(" --http-proxy=PROXY Use this proxy server for HTTP. To erase\n"\
  68. " previously defined proxy, use \"\".\n" \
  69. " See also --all-proxy option.\n" \
  70. " This affects all URLs.")
  71. #define TEXT_HTTPS_PROXY \
  72. _(" --https-proxy=PROXY Use this proxy server for HTTPS. To erase\n" \
  73. " previously defined proxy, use \"\".\n" \
  74. " See also --all-proxy option.\n" \
  75. " This affects all URLs.")
  76. #define TEXT_FTP_PROXY \
  77. _(" --ftp-proxy=PROXY Use this proxy server for FTP. To erase previously\n" \
  78. " defined proxy, use \"\".\n" \
  79. " See also --all-proxy option.\n" \
  80. " This affects all URLs.")
  81. #define TEXT_ALL_PROXY \
  82. _(" --all-proxy=PROXY Use this proxy server for all protocols. To erase\n" \
  83. " previously defined proxy, use \"\".\n" \
  84. " You can override this setting and specify a\n" \
  85. " proxy server for a particular protocol using\n" \
  86. " --http-proxy, --https-proxy and --ftp-proxy\n" \
  87. " options.\n" \
  88. " This affects all URLs.")
  89. #define TEXT_HTTP_USER \
  90. _(" --http-user=USER Set HTTP user. This affects all URLs.")
  91. #define TEXT_HTTP_PASSWD \
  92. _(" --http-passwd=PASSWD Set HTTP password. This affects all URLs.")
  93. #define TEXT_PROXY_METHOD \
  94. _(" --proxy-method=METHOD Set the method to use in proxy request.")
  95. #define TEXT_REFERER \
  96. _(" --referer=REFERER Set Referer. This affects all URLs.")
  97. #define TEXT_FTP_USER \
  98. _(" --ftp-user=USER Set FTP user. This affects all URLs.")
  99. #define TEXT_FTP_PASSWD \
  100. _(" --ftp-passwd=PASSWD Set FTP password. This affects all URLs.")
  101. #define TEXT_FTP_TYPE \
  102. _(" --ftp-type=TYPE Set FTP transfer type.")
  103. #define TEXT_FTP_PASV \
  104. _(" -p, --ftp-pasv[=true|false] Use the passive mode in FTP. If false is given,\n" \
  105. " the active mode will be used.")
  106. #define TEXT_LOWEST_SPEED_LIMIT \
  107. _(" --lowest-speed-limit=SPEED Close connection if download speed is lower than\n" \
  108. " or equal to this value(bytes per sec).\n" \
  109. " 0 means aria2 does not have a lowest speed limit.\n" \
  110. " You can append K or M(1K = 1024, 1M = 1024K).\n" \
  111. " This option does not affect BitTorrent downloads.")
  112. #define TEXT_MAX_OVERALL_DOWNLOAD_LIMIT \
  113. _(" --max-overall-download-limit=SPEED Set max overall download speed in bytes/sec.\n" \
  114. " 0 means unrestricted.\n" \
  115. " You can append K or M(1K = 1024, 1M = 1024K).\n" \
  116. " To limit the download speed per download, use\n" \
  117. " --max-download-limit option.")
  118. #define TEXT_MAX_DOWNLOAD_LIMIT \
  119. _(" --max-download-limit=SPEED Set max download speed per each download in\n" \
  120. " bytes/sec. 0 means unrestricted.\n" \
  121. " You can append K or M(1K = 1024, 1M = 1024K).\n" \
  122. " To limit the overall download speed, use\n" \
  123. " --max-overall-download-limit option.")
  124. #define TEXT_FILE_ALLOCATION \
  125. _(" --file-allocation=METHOD Specify file allocation method.\n" \
  126. " 'none' doesn't pre-allocate file space. 'prealloc'\n" \
  127. " pre-allocates file space before download begins.\n" \
  128. " This may take some time depending on the size of\n" \
  129. " the file.\n" \
  130. " If you are using newer file systems such as ext4\n" \
  131. " (with extents support), btrfs, xfs or NTFS\n" \
  132. " (MinGW build only), 'falloc' is your best\n" \
  133. " choice. It allocates large(few GiB) files\n" \
  134. " almost instantly. Don't use 'falloc' with legacy\n" \
  135. " file systems such as ext3 and FAT32 because it\n" \
  136. " takes almost same time as 'prealloc' and it\n" \
  137. " blocks aria2 entirely until allocation finishes.\n" \
  138. " 'falloc' may not be available if your system\n" \
  139. " doesn't have posix_fallocate() function.\n" \
  140. " 'trunc' uses ftruncate() system call or\n" \
  141. " platform-specific counterpart to truncate a file\n" \
  142. " to a specified length.")
  143. #define TEXT_NO_FILE_ALLOCATION_LIMIT \
  144. _(" --no-file-allocation-limit=SIZE No file allocation is made for files whose\n" \
  145. " size is smaller than SIZE.\n" \
  146. " You can append K or M(1K = 1024, 1M = 1024K).")
  147. # define TEXT_ENABLE_DIRECT_IO \
  148. _(" --enable-direct-io[=true|false] Enable directI/O, which lowers cpu usage while\n" \
  149. " allocating files.\n" \
  150. " Turn off if you encounter any error")
  151. #define TEXT_ALLOW_OVERWRITE \
  152. _(" --allow-overwrite[=true|false] Restart download from scratch if the\n" \
  153. " corresponding control file doesn't exist. See\n" \
  154. " also --auto-file-renaming option.")
  155. #define TEXT_ALLOW_PIECE_LENGTH_CHANGE \
  156. _(" --allow-piece-length-change[=true|false] If false is given, aria2 aborts\n" \
  157. " download when a piece length is different from\n" \
  158. " one in a control file. If true is given, you can\n" \
  159. " proceed but some download progress will be lost.")
  160. #define TEXT_FORCE_SEQUENTIAL \
  161. _(" -Z, --force-sequential[=true|false] Fetch URIs in the command-line sequentially\n" \
  162. " and download each URI in a separate session, like\n" \
  163. " the usual command-line download utilities.")
  164. #define TEXT_AUTO_FILE_RENAMING \
  165. _(" --auto-file-renaming[=true|false] Rename file name if the same file already\n" \
  166. " exists. This option works only in http(s)/ftp\n" \
  167. " download.\n" \
  168. " The new file name has a dot and a number(1..9999)\n" \
  169. " appended.")
  170. #define TEXT_PARAMETERIZED_URI \
  171. _(" -P, --parameterized-uri[=true|false] Enable parameterized URI support.\n" \
  172. " You can specify set of parts:\n" \
  173. " http://{sv1,sv2,sv3}/foo.iso\n" \
  174. " Also you can specify numeric sequences with step\n" \
  175. " counter:\n" \
  176. " http://host/image[000-100:2].img\n" \
  177. " A step counter can be omitted.\n" \
  178. " If all URIs do not point to the same file, such\n" \
  179. " as the second example above, -Z option is\n" \
  180. " required.")
  181. #define TEXT_ENABLE_HTTP_KEEP_ALIVE \
  182. _(" --enable-http-keep-alive[=true|false] Enable HTTP/1.1 persistent connection.")
  183. #define TEXT_ENABLE_HTTP_PIPELINING \
  184. _(" --enable-http-pipelining[=true|false] Enable HTTP/1.1 pipelining.")
  185. #define TEXT_CHECK_INTEGRITY \
  186. _(" -V, --check-integrity[=true|false] Check file integrity by validating piece\n" \
  187. " hashes or a hash of entire file. This option has\n" \
  188. " effect only in BitTorrent, Metalink downloads\n" \
  189. " with checksums or HTTP(S)/FTP downloads with\n" \
  190. " --checksum option. If piece hashes are provided,\n" \
  191. " this option can detect damaged portions of a file\n" \
  192. " and re-download them. If a hash of entire file is\n" \
  193. " provided, hash check is only done when file has\n" \
  194. " been already download. This is determined by file\n" \
  195. " length. If hash check fails, file is\n" \
  196. " re-downloaded from scratch. If both piece hashes\n" \
  197. " and a hash of entire file are provided, only\n" \
  198. " piece hashes are used.")
  199. #define TEXT_BT_HASH_CHECK_SEED \
  200. _(" --bt-hash-check-seed[=true|false] If true is given, after hash check using\n" \
  201. " --check-integrity option and file is complete,\n" \
  202. " continue to seed file. If you want to check file\n" \
  203. " and download it only when it is damaged or\n" \
  204. " incomplete, set this option to false.\n" \
  205. " This option has effect only on BitTorrent\n" \
  206. " download.")
  207. #define TEXT_REALTIME_CHUNK_CHECKSUM \
  208. _(" --realtime-chunk-checksum[=true|false] Validate chunk of data by calculating\n" \
  209. " checksum while downloading a file if chunk\n" \
  210. " checksums are provided.")
  211. #define TEXT_CONTINUE \
  212. _(" -c, --continue[=true|false] Continue downloading a partially downloaded\n" \
  213. " file. Use this option to resume a download\n" \
  214. " started by a web browser or another program\n" \
  215. " which downloads files sequentially from the\n" \
  216. " beginning. Currently this option is only\n" \
  217. " applicable to http(s)/ftp downloads.")
  218. #define TEXT_USER_AGENT \
  219. _(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
  220. #define TEXT_NO_NETRC \
  221. _(" -n, --no-netrc[=true|false] Disables netrc support.")
  222. #define TEXT_INPUT_FILE \
  223. _(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n" \
  224. " multiple URIs for a single entity: separate\n" \
  225. " URIs on a single line using the TAB character.\n" \
  226. " Reads input from stdin when '-' is specified.\n" \
  227. " Additionally, options can be specified after each\n" \
  228. " line of URI. This optional line must start with\n" \
  229. " one or more white spaces and have one option per\n" \
  230. " single line. See INPUT FILE section of man page\n" \
  231. " for details. See also --deferred-input option.")
  232. #define TEXT_MAX_CONCURRENT_DOWNLOADS \
  233. _(" -j, --max-concurrent-downloads=N Set maximum number of parallel downloads for\n" \
  234. " every static (HTTP/FTP) URL, torrent and metalink.\n" \
  235. " See also --split option.")
  236. #define TEXT_LOAD_COOKIES \
  237. _(" --load-cookies=FILE Load Cookies from FILE using the Firefox3 format\n" \
  238. " and Mozilla/Firefox(1.x/2.x)/Netscape format.")
  239. #define TEXT_SAVE_COOKIES \
  240. _(" --save-cookies=FILE Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/\n" \
  241. " Netscape format. If FILE already exists, it is\n" \
  242. " overwritten. Session Cookies are also saved and\n" \
  243. " their expiry values are treated as 0.")
  244. #define TEXT_SHOW_FILES \
  245. _(" -S, --show-files[=true|false] Print file listing of .torrent, .meta4 and\n" \
  246. " .metalink file and exit. More detailed\n" \
  247. " information will be listed in case of torrent\n" \
  248. " file.")
  249. #define TEXT_SELECT_FILE \
  250. _(" --select-file=INDEX... Set file to download by specifying its index.\n" \
  251. " You can find the file index using the\n" \
  252. " --show-files option. Multiple indexes can be\n" \
  253. " specified by using ',', for example: \"3,6\".\n" \
  254. " You can also use '-' to specify a range: \"1-5\".\n" \
  255. " ',' and '-' can be used together.\n" \
  256. " When used with the -M option, index may vary\n" \
  257. " depending on the query(see --metalink-* options).")
  258. #define TEXT_TORRENT_FILE \
  259. _(" -T, --torrent-file=TORRENT_FILE The path to the .torrent file.")
  260. #define TEXT_FOLLOW_TORRENT \
  261. _(" --follow-torrent=true|false|mem If true or mem is specified, when a file\n" \
  262. " whose suffix is .torrent or content type is\n" \
  263. " application/x-bittorrent is downloaded, aria2\n" \
  264. " parses it as a torrent file and downloads files\n" \
  265. " mentioned in it.\n" \
  266. " If mem is specified, a torrent file is not\n" \
  267. " written to the disk, but is just kept in memory.\n" \
  268. " If false is specified, the action mentioned above\n" \
  269. " is not taken.")
  270. #define TEXT_LISTEN_PORT \
  271. _(" --listen-port=PORT... Set TCP port number for BitTorrent downloads.\n" \
  272. " Multiple ports can be specified by using ',',\n" \
  273. " for example: \"6881,6885\". You can also use '-'\n" \
  274. " to specify a range: \"6881-6999\". ',' and '-' can\n" \
  275. " be used together.")
  276. #define TEXT_MAX_OVERALL_UPLOAD_LIMIT \
  277. _(" --max-overall-upload-limit=SPEED Set max overall upload speed in bytes/sec.\n" \
  278. " 0 means unrestricted.\n" \
  279. " You can append K or M(1K = 1024, 1M = 1024K).\n" \
  280. " To limit the upload speed per torrent, use\n" \
  281. " --max-upload-limit option.")
  282. #define TEXT_MAX_UPLOAD_LIMIT \
  283. _(" -u, --max-upload-limit=SPEED Set max upload speed per each torrent in\n" \
  284. " bytes/sec. 0 means unrestricted.\n" \
  285. " You can append K or M(1K = 1024, 1M = 1024K).\n" \
  286. " To limit the overall upload speed, use\n" \
  287. " --max-overall-upload-limit option.")
  288. #define TEXT_SEED_TIME \
  289. _(" --seed-time=MINUTES Specify seeding time in minutes. Also see the\n" \
  290. " --seed-ratio option.")
  291. #define TEXT_SEED_RATIO \
  292. _(" --seed-ratio=RATIO Specify share ratio. Seed completed torrents\n" \
  293. " until share ratio reaches RATIO.\n" \
  294. " You are strongly encouraged to specify equals or\n" \
  295. " more than 1.0 here. Specify 0.0 if you intend to\n" \
  296. " do seeding regardless of share ratio.\n" \
  297. " If --seed-time option is specified along with\n" \
  298. " this option, seeding ends when at least one of\n" \
  299. " the conditions is satisfied.")
  300. #define TEXT_PEER_ID_PREFIX \
  301. _(" --peer-id-prefix=PEER_ID_PREFIX Specify the prefix of peer ID. The peer ID in\n" \
  302. " BitTorrent is 20 byte length. If more than 20\n" \
  303. " bytes are specified, only first 20 bytes are\n" \
  304. " used. If less than 20 bytes are specified, random\n" \
  305. " byte data are added to make its length 20 bytes.")
  306. #define TEXT_ENABLE_PEER_EXCHANGE \
  307. _(" --enable-peer-exchange[=true|false] Enable Peer Exchange extension.")
  308. #define TEXT_ENABLE_DHT \
  309. _(" --enable-dht[=true|false] Enable IPv4 DHT functionality.")
  310. #define TEXT_DHT_LISTEN_PORT \
  311. _(" --dht-listen-port=PORT... Set UDP listening port for both IPv4 and IPv6\n" \
  312. " DHT. Multiple ports can be specified by using\n" \
  313. " ',', for example: \"6881,6885\". You can also\n" \
  314. " use '-' to specify a range: \"6881-6999\". ','\n" \
  315. " and '-' can be used together.")
  316. #define TEXT_DHT_ENTRY_POINT \
  317. _(" --dht-entry-point=HOST:PORT Set host and port as an entry point to IPv4 DHT\n" \
  318. " network.")
  319. #define TEXT_DHT_FILE_PATH \
  320. _(" --dht-file-path=PATH Change the IPv4 DHT routing table file to PATH.")
  321. #define TEXT_BT_MIN_CRYPTO_LEVEL \
  322. _(" --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n" \
  323. " If several encryption methods are provided by a\n" \
  324. " peer, aria2 chooses the lowest one which satisfies\n" \
  325. " the given level.")
  326. #define TEXT_BT_REQUIRE_CRYPTO \
  327. _(" --bt-require-crypto[=true|false] If true is given, aria2 doesn't accept and\n" \
  328. " establish connection with legacy BitTorrent\n" \
  329. " handshake. Thus aria2 always uses Obfuscation\n" \
  330. " handshake.")
  331. #define TEXT_BT_REQUEST_PEER_SPEED_LIMIT \
  332. _(" --bt-request-peer-speed-limit=SPEED If the whole download speed of every\n" \
  333. " torrent is lower than SPEED, aria2 temporarily\n" \
  334. " increases the number of peers to try for more\n" \
  335. " download speed. Configuring this option with your\n" \
  336. " preferred download speed can increase your\n" \
  337. " download speed in some cases.\n" \
  338. " You can append K or M(1K = 1024, 1M = 1024K).")
  339. #define TEXT_BT_MAX_OPEN_FILES \
  340. _(" --bt-max-open-files=NUM Specify maximum number of files to open in each\n" \
  341. " BitTorrent download.")
  342. #define TEXT_BT_SEED_UNVERIFIED \
  343. _(" --bt-seed-unverified[=true|false] Seed previously downloaded files without\n" \
  344. " verifying piece hashes.")
  345. #define TEXT_BT_MAX_PEERS \
  346. _(" --bt-max-peers=NUM Specify the maximum number of peers per torrent.\n" \
  347. " 0 means unlimited.\n" \
  348. " See also --bt-request-peer-speed-limit option.")
  349. #define TEXT_METALINK_FILE \
  350. _(" -M, --metalink-file=METALINK_FILE The file path to the .meta4 and .metalink\n" \
  351. " file. Reads input from stdin when '-' is\n" \
  352. " specified.")
  353. #define TEXT_METALINK_SERVERS \
  354. _(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n" \
  355. " simultaneously. Some Metalinks regulate the\n" \
  356. " number of servers to connect. aria2 strictly\n" \
  357. " respects them. This means that if Metalink defines\n" \
  358. " the maxconnections attribute lower than\n" \
  359. " NUM_SERVERS, then aria2 uses the value of\n" \
  360. " maxconnections attribute instead of NUM_SERVERS.\n" \
  361. " See also -s and -j options.")
  362. #define TEXT_METALINK_VERSION \
  363. _(" --metalink-version=VERSION The version of the file to download.")
  364. #define TEXT_METALINK_LANGUAGE \
  365. _(" --metalink-language=LANGUAGE The language of the file to download.")
  366. #define TEXT_METALINK_OS \
  367. _(" --metalink-os=OS The operating system of the file to download.")
  368. #define TEXT_METALINK_LOCATION \
  369. _(" --metalink-location=LOCATION[,...] The location of the preferred server.\n" \
  370. " A comma-delimited list of locations is\n" \
  371. " acceptable.")
  372. #define TEXT_METALINK_PREFERRED_PROTOCOL \
  373. _(" --metalink-preferred-protocol=PROTO Specify preferred protocol. Specify 'none'\n" \
  374. " if you don't have any preferred protocol.")
  375. #define TEXT_FOLLOW_METALINK \
  376. _(" --follow-metalink=true|false|mem If true or mem is specified, when a file\n" \
  377. " whose suffix is .meta4 or .metalink, or content\n" \
  378. " type of application/metalink4+xml or\n" \
  379. " application/metalink+xml is downloaded, aria2\n" \
  380. " parses it as a metalink file and downloads files\n" \
  381. " mentioned in it.\n" \
  382. " If mem is specified, a metalink file is not\n" \
  383. " written to the disk, but is just kept in memory.\n" \
  384. " If false is specified, the action mentioned above\n" \
  385. " is not taken.")
  386. #define TEXT_METALINK_ENABLE_UNIQUE_PROTOCOL \
  387. _(" --metalink-enable-unique-protocol[=true|false] If true is given and several\n" \
  388. " protocols are available for a mirror in a metalink\n" \
  389. " file, aria2 uses one of them.\n" \
  390. " Use --metalink-preferred-protocol option to\n" \
  391. " specify the preference of protocol.")
  392. #define TEXT_VERSION \
  393. _(" -v, --version Print the version number and exit.")
  394. #define TEXT_HELP \
  395. _(" -h, --help[=TAG|KEYWORD] Print usage and exit.\n" \
  396. " The help messages are classified with tags. A tag\n" \
  397. " starts with \"#\". For example, type \"--help=#http\"\n" \
  398. " to get the usage for the options tagged with\n" \
  399. " \"#http\". If non-tag word is given, print the usage\n" \
  400. " for the options whose name includes that word.")
  401. #define TEXT_NO_CONF \
  402. _(" --no-conf[=true|false] Disable loading aria2.conf file.")
  403. #define TEXT_CONF_PATH \
  404. _(" --conf-path=PATH Change the configuration file path to PATH.")
  405. #define TEXT_STOP \
  406. _(" --stop=SEC Stop application after SEC seconds has passed.\n" \
  407. " If 0 is given, this feature is disabled.")
  408. #define TEXT_HEADER \
  409. _(" --header=HEADER Append HEADER to HTTP request header. You can use\n" \
  410. " this option repeatedly to specify more than one\n" \
  411. " header:\n" \
  412. " aria2c --header=\"X-A: b78\" --header=\"X-B: 9J1\"\n" \
  413. " http://host/file")
  414. #define TEXT_QUIET \
  415. _(" -q, --quiet[=true|false] Make aria2 quiet(no console output).")
  416. #define TEXT_ASYNC_DNS \
  417. _(" --async-dns[=true|false] Enable asynchronous DNS.")
  418. #define TEXT_FTP_REUSE_CONNECTION \
  419. _(" --ftp-reuse-connection[=true|false] Reuse connection in FTP.")
  420. #define TEXT_SUMMARY_INTERVAL \
  421. _(" --summary-interval=SEC Set interval to output download progress summary.\n" \
  422. " Setting 0 suppresses the output.")
  423. #define TEXT_LOG_LEVEL \
  424. _(" --log-level=LEVEL Set log level to output.")
  425. #define TEXT_REMOTE_TIME \
  426. _(" -R, --remote-time[=true|false] Retrieve timestamp of the remote file from the\n" \
  427. " remote HTTP/FTP server and if it is available,\n" \
  428. " apply it to the local file.")
  429. #define TEXT_CONNECT_TIMEOUT \
  430. _(" --connect-timeout=SEC Set the connect timeout in seconds to establish\n" \
  431. " connection to HTTP/FTP/proxy server. After the\n" \
  432. " connection is established, this option makes no\n" \
  433. " effect and --timeout option is used instead.")
  434. #define TEXT_MAX_FILE_NOT_FOUND \
  435. _(" --max-file-not-found=NUM If aria2 receives `file not found' status from the\n" \
  436. " remote HTTP/FTP servers NUM times without getting\n" \
  437. " a single byte, then force the download to fail.\n" \
  438. " Specify 0 to disable this option.\n" \
  439. " This options is effective only when using\n" \
  440. " HTTP/FTP servers.")
  441. #define TEXT_URI_SELECTOR \
  442. _(" --uri-selector=SELECTOR Specify URI selection algorithm.\n" \
  443. " If 'inorder' is given, URI is tried in the order\n" \
  444. " appeared in the URI list.\n" \
  445. " If 'feedback' is given, aria2 uses download speed\n" \
  446. " observed in the previous downloads and choose\n" \
  447. " fastest server in the URI list. This also\n" \
  448. " effectively skips dead mirrors. The observed\n" \
  449. " download speed is a part of performance profile\n" \
  450. " of servers mentioned in --server-stat-of and\n" \
  451. " --server-stat-if options.\n" \
  452. " If 'adaptive' is given, selects one of the best\n" \
  453. " mirrors for the first and reserved connections.\n" \
  454. " For supplementary ones, it returns mirrors which\n" \
  455. " has not been tested yet, and if each of them has\n" \
  456. " already been tested, returns mirrors which has to\n" \
  457. " be tested again. Otherwise, it doesn't select\n" \
  458. " anymore mirrors. Like 'feedback', it uses a\n" \
  459. " performance profile of servers.")
  460. #define TEXT_SERVER_STAT_OF \
  461. _(" --server-stat-of=FILE Specify the filename to which performance profile\n" \
  462. " of the servers is saved. You can load saved data\n" \
  463. " using --server-stat-if option.")
  464. #define TEXT_SERVER_STAT_IF \
  465. _(" --server-stat-if=FILE Specify the filename to load performance profile\n" \
  466. " of the servers. The loaded data will be used in\n" \
  467. " some URI selector such as 'feedback'.\n" \
  468. " See also --uri-selector option")
  469. #define TEXT_SERVER_STAT_TIMEOUT \
  470. _(" --server-stat-timeout=SEC Specifies timeout in seconds to invalidate\n" \
  471. " performance profile of the servers since the last\n" \
  472. " contact to them.")
  473. #define TEXT_AUTO_SAVE_INTERVAL \
  474. _(" --auto-save-interval=SEC Save a control file(*.aria2) every SEC seconds.\n" \
  475. " If 0 is given, a control file is not saved during\n" \
  476. " download. aria2 saves a control file when it stops\n" \
  477. " regardless of the value.")
  478. #define TEXT_CERTIFICATE \
  479. _(" --certificate=FILE Use the client certificate in FILE.\n" \
  480. " The certificate must be in PEM format.\n" \
  481. " You may use --private-key option to specify the\n" \
  482. " private key.")
  483. #define TEXT_PRIVATE_KEY \
  484. _(" --private-key=FILE Use the private key in FILE.\n" \
  485. " The private key must be decrypted and in PEM\n" \
  486. " format. See also --certificate option.")
  487. #define TEXT_CA_CERTIFICATE \
  488. _(" --ca-certificate=FILE Use the certificate authorities in FILE to verify\n" \
  489. " the peers. The certificate file must be in PEM\n" \
  490. " format and can contain multiple CA certificates.\n" \
  491. " Use --check-certificate option to enable\n" \
  492. " verification.")
  493. #define TEXT_CHECK_CERTIFICATE \
  494. _(" --check-certificate[=true|false] Verify the peer using certificates specified\n" \
  495. " in --ca-certificate option.")
  496. #define TEXT_NO_PROXY \
  497. _(" --no-proxy=DOMAINS Specify comma separated hostnames, domains or\n" \
  498. " network address with or without CIDR block where\n" \
  499. " proxy should not be used.")
  500. #define TEXT_USE_HEAD \
  501. _(" --use-head[=true|false] Use HEAD method for the first request to the HTTP\n" \
  502. " server.")
  503. #define TEXT_EVENT_POLL \
  504. _(" --event-poll=POLL Specify the method for polling events.")
  505. #define TEXT_BT_EXTERNAL_IP \
  506. _(" --bt-external-ip=IPADDRESS Specify the external IP address to report to a\n" \
  507. " BitTorrent tracker. Although this function is\n" \
  508. " named 'external', it can accept any kind of IP\n" \
  509. " addresses.")
  510. #define TEXT_HTTP_AUTH_CHALLENGE \
  511. _(" --http-auth-challenge[=true|false] Send HTTP authorization header only when it\n" \
  512. " is requested by the server. If false is set, then\n" \
  513. " authorization header is always sent to the server.\n" \
  514. " There is an exception: if username and password\n" \
  515. " are embedded in URI, authorization header is\n" \
  516. " always sent to the server regardless of this\n" \
  517. " option.")
  518. #define TEXT_INDEX_OUT \
  519. _(" -O, --index-out=INDEX=PATH Set file path for file with index=INDEX. You can\n" \
  520. " find the file index using the --show-files option.\n" \
  521. " PATH is a relative path to the path specified in\n" \
  522. " --dir option. You can use this option multiple\n" \
  523. " times.")
  524. #define TEXT_DRY_RUN \
  525. _(" --dry-run[=true|false] If true is given, aria2 just checks whether the\n" \
  526. " remote file is available and doesn't download\n" \
  527. " data. This option has effect on HTTP/FTP download.\n" \
  528. " BitTorrent downloads are canceled if true is\n" \
  529. " specified.")
  530. #define TEXT_BT_TRACKER_INTERVAL \
  531. _(" --bt-tracker-interval=SEC Set the interval in seconds between tracker\n" \
  532. " requests. This completely overrides interval value\n" \
  533. " and aria2 just uses this value and ignores the\n" \
  534. " min interval and interval value in the response of\n" \
  535. " tracker. If 0 is set, aria2 determines interval\n" \
  536. " based on the response of tracker and the download\n" \
  537. " progress.")
  538. #define TEXT_ON_DOWNLOAD_COMPLETE \
  539. _(" --on-download-complete=COMMAND Set the command to be executed after download\n" \
  540. " completed.\n" \
  541. " See --on-download-start option for the\n" \
  542. " requirement of COMMAND.\n" \
  543. " See also --on-download-stop option.")
  544. #define TEXT_ON_DOWNLOAD_START \
  545. _(" --on-download-start=COMMAND Set the command to be executed after download\n" \
  546. " got started. aria2 passes 3 arguments to COMMAND:\n" \
  547. " GID, the nubmer of files and file path. See Event\n" \
  548. " Hook in man page for more details.")
  549. #define TEXT_ON_DOWNLOAD_PAUSE \
  550. _(" --on-download-pause=COMMAND Set the command to be executed after download\n" \
  551. " was paused.\n"\
  552. " See --on-download-start option for the\n" \
  553. " requirement of COMMAND.")
  554. #define TEXT_ON_DOWNLOAD_ERROR \
  555. _(" --on-download-error=COMMAND Set the command to be executed after download\n" \
  556. " aborted due to error.\n" \
  557. " See --on-download-start option for the\n" \
  558. " requirement of COMMAND.\n" \
  559. " See also --on-download-stop option.")
  560. #define TEXT_ON_DOWNLOAD_STOP \
  561. _(" --on-download-stop=COMMAND Set the command to be executed after download\n" \
  562. " stopped. You can override the command to be\n" \
  563. " executed for particular download result using\n" \
  564. " --on-download-complete and --on-download-error. If\n" \
  565. " they are specified, command specified in this\n" \
  566. " option is not executed.\n" \
  567. " See --on-download-start option for the\n" \
  568. " requirement of COMMAND.")
  569. #define TEXT_BT_STOP_TIMEOUT \
  570. _(" --bt-stop-timeout=SEC Stop BitTorrent download if download speed is 0 in\n" \
  571. " consecutive SEC seconds. If 0 is given, this\n" \
  572. " feature is disabled.")
  573. #define TEXT_BT_PRIORITIZE_PIECE \
  574. _(" --bt-prioritize-piece=head[=SIZE],tail[=SIZE] Try to download first and last\n" \
  575. " pieces of each file first. This is useful for\n" \
  576. " previewing files. The argument can contain 2\n" \
  577. " keywords:head and tail. To include both keywords,\n" \
  578. " they must be separated by comma. These keywords\n" \
  579. " can take one parameter, SIZE. For example, if\n" \
  580. " head=SIZE is specified, pieces in the range of\n" \
  581. " first SIZE bytes of each file get higher priority.\n" \
  582. " tail=SIZE means the range of last SIZE bytes of\n" \
  583. " each file. SIZE can include K or M(1K = 1024, 1M =\n" \
  584. " 1024K). If SIZE is omitted, SIZE=1M is used.")
  585. #define TEXT_INTERFACE \
  586. _(" --interface=INTERFACE Bind sockets to given interface. You can specify\n" \
  587. " interface name, IP address and hostname.")
  588. #define TEXT_DISABLE_IPV6 \
  589. _(" --disable-ipv6[=true|false] Disable IPv6.")
  590. #define TEXT_BT_SAVE_METADATA \
  591. _(" --bt-save-metadata[=true|false] Save metadata as .torrent file. This option has\n" \
  592. " effect only when BitTorrent Magnet URI is used.\n" \
  593. " The filename is hex encoded info hash with suffix\n" \
  594. " .torrent. The directory to be saved is the same\n" \
  595. " directory where download file is saved. If the\n" \
  596. " same file already exists, metadata is not saved.\n" \
  597. " See also --bt-metadata-only option.")
  598. #define TEXT_HTTP_NO_CACHE \
  599. _(" --http-no-cache[=true|false] Send Cache-Control: no-cache and Pragma: no-cache\n" \
  600. " header to avoid cached content. If false is\n" \
  601. " given, these headers are not sent and you can add\n" \
  602. " Cache-Control header with a directive you like\n" \
  603. " using --header option.")
  604. #define TEXT_BT_METADATA_ONLY \
  605. _(" --bt-metadata-only[=true|false] Download metadata only. The file(s) described\n" \
  606. " in metadata will not be downloaded. This option\n" \
  607. " has effect only when BitTorrent Magnet URI is\n" \
  608. " used. See also --bt-save-metadata option.")
  609. #define TEXT_HUMAN_READABLE \
  610. _(" --human-readable[=true|false] Print sizes and speed in human readable format\n" \
  611. " (e.g., 1.2Ki, 3.4Mi) in the console readout.")
  612. #define TEXT_BT_ENABLE_LPD \
  613. _(" --bt-enable-lpd[=true|false] Enable Local Peer Discovery.")
  614. #define TEXT_BT_LPD_INTERFACE \
  615. _(" --bt-lpd-interface=INTERFACE Use given interface for Local Peer Discovery. If\n" \
  616. " this option is not specified, the default\n" \
  617. " interface is chosen. You can specify interface\n" \
  618. " name and IP address.")
  619. #define TEXT_REUSE_URI \
  620. _(" --reuse-uri[=true|false] Reuse already used URIs if no unused URIs are\n" \
  621. " left.")
  622. #define TEXT_ALL_PROXY_USER \
  623. _(" --all-proxy-user=USER Set user for --all-proxy option.")
  624. #define TEXT_ALL_PROXY_PASSWD \
  625. _(" --all-proxy-passwd=PASSWD Set password for --all-proxy option.")
  626. #define TEXT_HTTP_PROXY_USER \
  627. _(" --http-proxy-user=USER Set user for --http-proxy option.")
  628. #define TEXT_HTTP_PROXY_PASSWD \
  629. _(" --http-proxy-passwd=PASSWD Set password for --http-proxy option.")
  630. #define TEXT_HTTPS_PROXY_USER \
  631. _(" --https-proxy-user=USER Set user for --https-proxy option.")
  632. #define TEXT_HTTPS_PROXY_PASSWD \
  633. _(" --https-proxy-passwd=PASSWD Set password for --https-proxy option.")
  634. #define TEXT_FTP_PROXY_USER \
  635. _(" --ftp-proxy-user=USER Set user for --ftp-proxy option.")
  636. #define TEXT_FTP_PROXY_PASSWD \
  637. _(" --ftp-proxy-passwd=PASSWD Set password for --ftp-proxy option.")
  638. #define TEXT_REMOVE_CONTROL_FILE \
  639. _(" --remove-control-file[=true|false] Remove control file before download. Using\n" \
  640. " with --allow-overwrite=true, download always\n" \
  641. " starts from scratch. This will be useful for\n" \
  642. " users behind proxy server which disables resume.")
  643. #define TEXT_ALWAYS_RESUME \
  644. _(" --always-resume[=true|false] Always resume download. If true is given, aria2\n" \
  645. " always tries to resume download and if resume is\n" \
  646. " not possible, aborts download. If false is given,\n" \
  647. " when all given URIs do not support resume or\n" \
  648. " aria2 encounters N URIs which does not support\n" \
  649. " resume (N is the value specified using\n" \
  650. " --max-resume-failure-tries option), aria2\n" \
  651. " downloads file from scratch.\n" \
  652. " See --max-resume-failure-tries option.")
  653. #define TEXT_MAX_RESUME_FAILURE_TRIES \
  654. _(" --max-resume-failure-tries=N When used with --always-resume=false, aria2\n" \
  655. " downloads file from scratch when aria2 detects N\n" \
  656. " number of URIs that does not support resume. If N\n" \
  657. " is 0, aria2 downloads file from scratch when all\n" \
  658. " given URIs do not support resume.\n" \
  659. " See --always-resume option.")
  660. #define TEXT_BT_TRACKER_TIMEOUT \
  661. _(" --bt-tracker-timeout=SEC Set timeout in seconds.")
  662. #define TEXT_BT_TRACKER_CONNECT_TIMEOUT \
  663. _(" --bt-tracker-connect-timeout=SEC Set the connect timeout in seconds to\n" \
  664. " establish connection to tracker. After the\n" \
  665. " connection is established, this option makes no\n" \
  666. " effect and --bt-tracker-timeout option is used\n" \
  667. " instead.")
  668. #define TEXT_DHT_MESSAGE_TIMEOUT \
  669. _(" --dht-message-timeout=SEC Set timeout in seconds.")
  670. #define TEXT_HTTP_ACCEPT_GZIP \
  671. _(" --http-accept-gzip[=true|false] Send 'Accept: deflate, gzip' request header\n" \
  672. " and inflate response if remote server responds\n" \
  673. " with 'Content-Encoding: gzip' or\n" \
  674. " 'Content-Encoding: deflate'.")
  675. #define TEXT_SAVE_SESSION \
  676. _(" --save-session=FILE Save error/unfinished downloads to FILE on exit.\n" \
  677. " You can pass this output file to aria2c with -i\n" \
  678. " option on restart. Please note that downloads\n" \
  679. " added by aria2.addTorrent and aria2.addMetalink\n" \
  680. " RPC method and whose metadata could not be saved\n" \
  681. " as a file will not be saved. Downloads removed\n" \
  682. " using aria2.remove and aria2.forceRemove will not\n" \
  683. " be saved.")
  684. #define TEXT_MAX_CONNECTION_PER_SERVER \
  685. _(" -x, --max-connection-per-server=NUM The maximum number of connections to one\n" \
  686. " server for each download.")
  687. #define TEXT_MIN_SPLIT_SIZE \
  688. _(" -k, --min-split-size=SIZE aria2 does not split less than 2*SIZE byte range.\n" \
  689. " For example, let's consider downloading 20MiB\n" \
  690. " file. If SIZE is 10M, aria2 can split file into 2\n" \
  691. " range [0-10MiB) and [10MiB-20MiB) and download it\n" \
  692. " using 2 sources(if --split >= 2, of course).\n" \
  693. " If SIZE is 15M, since 2*15M > 20MiB, aria2 does\n" \
  694. " not split file and download it using 1 source.\n" \
  695. " You can append K or M(1K = 1024, 1M = 1024K).")
  696. #define TEXT_CONDITIONAL_GET \
  697. _(" --conditional-get[=true|false] Download file only when the local file is older\n" \
  698. " than remote file. Currently, this function has\n" \
  699. " many limitations. See man page for details.")
  700. #define TEXT_ON_BT_DOWNLOAD_COMPLETE \
  701. _(" --on-bt-download-complete=COMMAND For BitTorrent, a command specified in\n" \
  702. " --on-download-complete is called after download\n" \
  703. " completed and seeding is over. On the other hand,\n" \
  704. " this option sets the command to be executed after\n" \
  705. " download completed but before seeding.\n" \
  706. " See --on-download-start option for the\n" \
  707. " requirement of COMMAND.")
  708. #define TEXT_ENABLE_ASYNC_DNS6 \
  709. _(" --enable-async-dns6[=true|false] Enable IPv6 name resolution in asynchronous\n" \
  710. " DNS resolver. This option will be ignored when\n" \
  711. " --async-dns=false.")
  712. #define TEXT_ENABLE_DHT6 \
  713. _(" --enable-dht6[=true|false] Enable IPv6 DHT functionality.\n" \
  714. " Use --dht-listen-port option to specify port\n" \
  715. " number to listen on. See also --dht-listen-addr6\n" \
  716. " option.")
  717. #define TEXT_DHT_LISTEN_ADDR6 \
  718. _(" --dht-listen-addr6=ADDR Specify address to bind socket for IPv6 DHT. \n" \
  719. " It should be a global unicast IPv6 address of the\n" \
  720. " host.")
  721. #define TEXT_DHT_ENTRY_POINT6 \
  722. _(" --dht-entry-point6=HOST:PORT Set host and port as an entry point to IPv6 DHT\n" \
  723. " network.")
  724. #define TEXT_DHT_FILE_PATH6 \
  725. _(" --dht-file-path6=PATH Change the IPv6 DHT routing table file to PATH.")
  726. #define TEXT_BT_TRACKER \
  727. _(" --bt-tracker=URI[,...] Comma separated list of additional BitTorrent\n" \
  728. " tracker's announce URI. These URIs are not\n" \
  729. " affected by --bt-exclude-tracker option because\n" \
  730. " they are added after URIs in --bt-exclude-tracker\n" \
  731. " option are removed.")
  732. #define TEXT_BT_EXCLUDE_TRACKER \
  733. _(" --bt-exclude-tracker=URI[,...] Comma separated list of BitTorrent tracker's\n" \
  734. " announce URI to remove. You can use special value\n" \
  735. " '*' which matches all URIs, thus removes all\n" \
  736. " announce URIs. When specifying '*' in shell\n" \
  737. " command-line, don't forget to escape or quote it.\n" \
  738. " See also --bt-tracker option.")
  739. #define TEXT_MAX_DOWNLOAD_RESULT \
  740. _(" --max-download-result=NUM Set maximum number of download result kept in\n" \
  741. " memory. The download results are completed/error/\n" \
  742. " removed downloads. The download results are stored\n" \
  743. " in FIFO queue and it can store at most NUM\n" \
  744. " download results. When queue is full and new\n" \
  745. " download result is created, oldest download result\n" \
  746. " is removed from the front of the queue and new one\n" \
  747. " is pushed to the back. Setting big number in this\n" \
  748. " option may result high memory consumption after\n" \
  749. " thousands of downloads. Specifying 0 means no\n" \
  750. " download result is kept.")
  751. #define TEXT_ASYNC_DNS_SERVER \
  752. _(" --async-dns-server=IPADDRESS[,...] Comma separated list of DNS server address\n" \
  753. " used in asynchronous DNS resolver. Usually\n" \
  754. " asynchronous DNS resolver reads DNS server\n" \
  755. " addresses from /etc/resolv.conf. When this option\n" \
  756. " is used, it uses DNS servers specified in this\n" \
  757. " option instead of ones in /etc/resolv.conf. You\n" \
  758. " can specify both IPv4 and IPv6 address. This\n" \
  759. " option is useful when the system does not have\n" \
  760. " /etc/resolv.conf and user does not have the\n" \
  761. " permission to create it.")
  762. #define TEXT_ENABLE_RPC \
  763. _(" --enable-rpc[=true|false] Enable JSON-RPC/XML-RPC server.\n" \
  764. " It is strongly recommended to set username and\n" \
  765. " password using --rpc-user and --rpc-passwd\n" \
  766. " option. See also --rpc-listen-port option.")
  767. #define TEXT_RPC_MAX_REQUEST_SIZE \
  768. _(" --rpc-max-request-size=SIZE Set max size of JSON-RPC/XML-RPC request. If aria2\n" \
  769. " detects the request is more than SIZE bytes, it\n" \
  770. " drops connection.")
  771. #define TEXT_RPC_USER \
  772. _(" --rpc-user=USER Set JSON-RPC/XML-RPC user.")
  773. #define TEXT_RPC_PASSWD \
  774. _(" --rpc-passwd=PASSWD Set JSON-RPC/XML-RPC password.")
  775. #define TEXT_RPC_LISTEN_ALL \
  776. _(" --rpc-listen-all[=true|false] Listen incoming JSON-RPC/XML-RPC requests on all\n" \
  777. " network interfaces. If false is given, listen only\n" \
  778. " on local loopback interface.")
  779. #define TEXT_RPC_LISTEN_PORT \
  780. _(" --rpc-listen-port=PORT Specify a port number for JSON-RPC/XML-RPC server\n" \
  781. " to listen to.")
  782. #define TEXT_SHOW_CONSOLE_READOUT \
  783. _(" --show-console-readout[=true|false] Show console readout.")
  784. #define TEXT_METALINK_BASE_URI \
  785. _(" --metalink-base-uri=URI Specify base URI to resolve relative URI in\n" \
  786. " metalink:url and metalink:metaurl element in a\n" \
  787. " metalink file stored in local disk. If URI points\n" \
  788. " to a directory, URI must end with '/'.")
  789. #define TEXT_STREAM_PIECE_SELECTOR \
  790. _(" --stream-piece-selector=SELECTOR Specify piece selection algorithm\n" \
  791. " used in HTTP/FTP download. Piece means fixed\n" \
  792. " length segment which is downloaded in parallel\n" \
  793. " in segmented download. If 'default' is given,\n" \
  794. " aria2 selects piece so that it reduces the\n" \
  795. " number of establishing connection. This is\n" \
  796. " reasonable default behaviour because\n" \
  797. " establishing connection is an expensive\n" \
  798. " operation.\n" \
  799. " If 'inorder' is given, aria2 selects piece which\n" \
  800. " has minimum index. Index=0 means first of the\n" \
  801. " file. This will be useful to view movie while\n" \
  802. " downloading it. --enable-http-pipelining option\n" \
  803. " may be useful to reduce reconnection overhead.\n" \
  804. " Please note that aria2 honors\n" \
  805. " --min-split-size option, so it will be necessary\n" \
  806. " to specify a reasonable value to\n" \
  807. " --min-split-size option.\n" \
  808. " If 'geom' is given, at the beginning aria2\n" \
  809. " selects piece which has minimum index like\n" \
  810. " 'inorder', but it exponentially increasingly\n" \
  811. " keeps space from previously selected piece. This\n" \
  812. " will reduce the number of establishing connection\n" \
  813. " and at the same time it will download the\n" \
  814. " beginning part of the file first. This will be\n" \
  815. " useful to view movie while downloading it.")
  816. #define TEXT_TRUNCATE_CONSOLE_READOUT \
  817. _(" --truncate-console-readout[=true|false] Truncate console readout to fit in\n"\
  818. " a single line.")
  819. #define TEXT_PAUSE \
  820. _(" --pause[=true|false] Pause download after added. This option is\n" \
  821. " effective only when --enable-rpc=true is given.")
  822. #define TEXT_RPC_ALLOW_ORIGIN_ALL \
  823. _(" --rpc-allow-origin-all[=true|false] Add Access-Control-Allow-Origin header\n" \
  824. " field with value '*' to the RPC response.")
  825. #define TEXT_DOWNLOAD_RESULT \
  826. _(" --download-result=OPT This option changes the way \"Download Results\"\n" \
  827. " is formatted. If OPT is 'default', print GID,\n" \
  828. " status, average download speed and path/URI. If\n" \
  829. " multiple files are involved, path/URI of first\n" \
  830. " requested file is printed and remaining ones are\n" \
  831. " omitted.\n" \
  832. " If OPT is 'full', print GID, status, average\n" \
  833. " download speed, percentage of progress and\n" \
  834. " path/URI. The percentage of progress and\n" \
  835. " path/URI are printed for each requested file in\n" \
  836. " each row.")
  837. #define TEXT_HASH_CHECK_ONLY \
  838. _(" --hash-check-only[=true|false] If true is given, after hash check using\n" \
  839. " --check-integrity option, abort download whether\n" \
  840. " or not download is complete.")
  841. #define TEXT_CHECKSUM \
  842. _(" --checksum=TYPE=DIGEST Set checksum. TYPE is hash type. The supported\n" \
  843. " hash type is listed in \"Hash Algorithms\" in\n" \
  844. " \"aria2c -v\". DIGEST is hex digest.\n" \
  845. " For example, setting sha-1 digest looks like\n" \
  846. " this:\n" \
  847. " sha-1=0192ba11326fe2298c8cb4de616f4d4140213838\n" \
  848. " This option applies only to HTTP(S)/FTP\n" \
  849. " downloads.")
  850. #define TEXT_PIECE_LENGTH \
  851. _(" --piece-length=LENGTH Set a piece length for HTTP/FTP downloads. This\n" \
  852. " is the boundary when aria2 splits a file. All\n" \
  853. " splits occur at multiple of this length. This\n" \
  854. " option will be ignored in BitTorrent downloads.\n" \
  855. " It will be also ignored if Metalink file\n" \
  856. " contains piece hashes.")
  857. #define TEXT_STOP_WITH_PROCESS \
  858. _(" --stop-with-process=PID Stop application when process PID is not running.\n" \
  859. " This is useful if aria2 process is forked from a\n" \
  860. " parent process. The parent process can fork aria2\n" \
  861. " with its own pid and when parent process exits\n" \
  862. " for some reason, aria2 can detect it and shutdown\n" \
  863. " itself.")
  864. #define TEXT_DEFERRED_INPUT \
  865. _(" --deferred-input[=true|false] If true is given, aria2 does not read all URIs\n" \
  866. " and options from file specified by -i option at\n" \
  867. " startup, but it reads one by one when it needs\n" \
  868. " later. This may reduce memory usage if input\n" \
  869. " file contains a lot of URIs to download.\n" \
  870. " If false is given, aria2 reads all URIs and\n" \
  871. " options at startup.")
  872. #define TEXT_BT_REMOVE_UNSELECTED_FILE \
  873. _(" --bt-remove-unselected-file[=true|false] Removes the unselected files when\n" \
  874. " download is completed in BitTorrent. To\n" \
  875. " select files, use --select-file option. If\n" \
  876. " it is not used, all files are assumed to be\n" \
  877. " selected. Please use this option with care\n" \
  878. " because it will actually remove files from\n" \
  879. " your disk.")
  880. #define TEXT_ENABLE_MMAP \
  881. _(" --enable-mmap[=true|false] Map files into memory.")