usage_text.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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.")
  51. #define TEXT_RETRY_WAIT \
  52. _(" --retry-wait=SEC Set the seconds to wait to retry after an error\n"\
  53. " has occured. Specify a value between 0 and 60.\n"\
  54. " Default: 5")
  55. #define TEXT_TIMEOUT \
  56. _(" -t, --timeout=SEC Set timeout in seconds. Default: 60")
  57. #define TEXT_MAX_TRIES \
  58. _(" -m, --max-tries=N Set number of tries. 0 means unlimited.\n"\
  59. " Default: 5")
  60. #define TEXT_HTTP_PROXY \
  61. _(" --http-proxy=HOST:PORT Use HTTP proxy server. This affects all URLs.")
  62. #define TEXT_HTTP_USER \
  63. _(" --http-user=USER Set HTTP user. This affects all URLs.")
  64. #define TEXT_HTTP_PASSWD \
  65. _(" --http-passwd=PASSWD Set HTTP password. This affects all URLs.")
  66. #define TEXT_HTTP_PROXY_USER \
  67. _(" --http-proxy-user=USER Set HTTP proxy user. This affects all URLs.")
  68. #define TEXT_HTTP_PROXY_PASSWD \
  69. _(" --http-proxy-passwd=PASSWD Set HTTP proxy password. This affects all URLs.")
  70. #define TEXT_HTTP_PROXY_METHOD \
  71. _(" --http-proxy-method=METHOD Set the method to use in proxy request.\n"\
  72. " METHOD is either 'get' or 'tunnel'.\n"\
  73. " Default: tunnel")
  74. #define TEXT_HTTP_AUTH_SCHEME \
  75. _(" --http-auth-scheme=SCHEME Set HTTP authentication scheme. Currently, basic\n"\
  76. " is the only supported scheme.\n"\
  77. " Default: basic")
  78. #define TEXT_REFERER \
  79. _(" --referer=REFERER Set Referer. This affects all URLs.")
  80. #define TEXT_FTP_USER \
  81. _(" --ftp-user=USER Set FTP user. This affects all URLs.\n"\
  82. " Default: anonymous")
  83. #define TEXT_FTP_PASSWD \
  84. _(" --ftp-passwd=PASSWD Set FTP password. This affects all URLs.\n"\
  85. " Default: ARIA2USER@")
  86. #define TEXT_FTP_TYPE \
  87. _(" --ftp-type=TYPE Set FTP transfer type. TYPE is either 'binary'\n"\
  88. " or 'ascii'.\n"\
  89. " Default: binary")
  90. #define TEXT_FTP_PASV \
  91. _(" -p, --ftp-pasv Use passive mode in FTP.")
  92. #define TEXT_FTP_VIA_HTTP_PROXY \
  93. _(" --ftp-via-http-proxy=METHOD Use HTTP proxy in FTP. METHOD is either 'get' or\n"\
  94. " 'tunnel'.\n"\
  95. " Default: tunnel")
  96. #define TEXT_LOWEST_SPEED_LIMIT \
  97. _(" --lowest-speed-limit=SPEED Close connection if download speed is lower than\n"\
  98. " or equal to this value(bytes per sec).\n"\
  99. " 0 means aria2 does not have a lowest speed limit.\n"\
  100. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  101. " This option does not affect BitTorrent downloads.\n"\
  102. " Default: 0")
  103. #define TEXT_MAX_DOWNLOAD_LIMIT \
  104. _(" --max-download-limit=SPEED Set max download speed in bytes per sec.\n"\
  105. " 0 means unrestricted.\n"\
  106. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  107. " Default: 0")
  108. #define TEXT_FILE_ALLOCATION \
  109. _(" --file-allocation=METHOD Specify file allocation method. METHOD is either\n"\
  110. " 'none' or 'prealloc'. 'none' doesn't pre-allocate\n"\
  111. " file space. 'prealloc' pre-allocates file space\n"\
  112. " before download begins. This may take some time\n"\
  113. " depending on the size of the file.\n"\
  114. " Default: prealloc")
  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.\n"\
  127. " Default: false")
  128. #define TEXT_ALLOW_PIECE_LENGTH_CHANGE \
  129. _(" --allow-piece-length-change=true|false If false is given, aria2 aborts download\n"\
  130. " when a piece length is different from one in\n"\
  131. " a control file. If true is given, you can proceed\n"\
  132. " but some download progress will be lost.")
  133. #define TEXT_FORCE_SEQUENTIAL \
  134. _(" -Z, --force-sequential[=true|false] Fetch URIs in the command-line sequentially\n"\
  135. " and download each URI in a separate session, like\n"\
  136. " the usual command-line download utilities.\n"\
  137. " Default: false")
  138. #define TEXT_AUTO_FILE_RENAMING \
  139. _(" --auto-file-renaming[=true|false] Rename file name if the same file already\n"\
  140. " exists. This option works only in http(s)/ftp\n"\
  141. " download.\n"\
  142. " The new file name has a dot and a number(1..9999)\n"\
  143. " appended.\n"\
  144. " Default: true")
  145. #define TEXT_PARAMETERIZED_URI \
  146. _(" -P, --parameterized-uri[=true|false] Enable parameterized URI support.\n"\
  147. " You can specify set of parts:\n"\
  148. " http://{sv1,sv2,sv3}/foo.iso\n"\
  149. " Also you can specify numeric sequences with step\n"\
  150. " counter:\n"\
  151. " http://host/image[000-100:2].img\n"\
  152. " A step counter can be omitted.\n"\
  153. " If all URIs do not point to the same file, such\n"\
  154. " as the second example above, -Z option is\n"\
  155. " required.\n"\
  156. " Default: false")
  157. #define TEXT_ENABLE_HTTP_KEEP_ALIVE \
  158. _(" --enable-http-keep-alive[=true|false] Enable HTTP/1.1 persistent connection.")
  159. #define TEXT_ENABLE_HTTP_PIPELINING \
  160. _(" --enable-http-pipelining[=true|false] Enable HTTP/1.1 pipelining.\n"\
  161. " Default: false")
  162. #define TEXT_CHECK_INTEGRITY \
  163. _(" --check-integrity=true|false Check file integrity by validating piece hash.\n"\
  164. " This option only affects in BitTorrent downloads\n"\
  165. " and Metalink downloads with chunk checksums.\n"\
  166. " Use this option to re-download a damaged portion\n"\
  167. " of a file.\n"\
  168. " Default: false")
  169. #define TEXT_REALTIME_CHUNK_CHECKSUM \
  170. _(" --realtime-chunk-checksum=true|false Validate chunk checksum while\n"\
  171. " downloading a file in Metalink mode. This option\n"\
  172. " on affects Metalink mode with chunk checksums.\n"\
  173. " Default: true")
  174. #define TEXT_CONTINUE \
  175. _(" -c, --continue Continue downloading a partially downloaded\n"\
  176. " file. Use this option to resume a download\n"\
  177. " started by a web browser or another program\n"\
  178. " which downloads files sequentially from the\n"\
  179. " beginning. Currently this option is only\n"\
  180. " applicable to http(s)/ftp downloads.")
  181. #define TEXT_USER_AGENT \
  182. _(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
  183. #define TEXT_NO_NETRC \
  184. _(" -n, --no-netrc Disables netrc support.")
  185. #define TEXT_INPUT_FILE \
  186. _(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n"\
  187. " multiple URIs for a single entity: separate\n"\
  188. " URIs on a single line using the TAB character.\n"\
  189. " Reads input from stdin when '-' is specified.")
  190. #define TEXT_MAX_CONCURRENT_DOWNLOADS \
  191. _(" -j, --max-concurrent-downloads=N Set maximum number of parallel downloads for\n"\
  192. " every static (HTTP/FTP) URL, torrent and metalink.")
  193. #define TEXT_LOAD_COOKIES \
  194. _(" --load-cookies=FILE Load cookies from FILE. The format of FILE is\n"\
  195. " the same used by Netscape and Mozilla.")
  196. #define TEXT_SHOW_FILES \
  197. _(" -S, --show-files Print file listing of .torrent or .metalink file\n"\
  198. " and exit. More detailed information will be listed\n"\
  199. " in case of torrent file.")
  200. #define TEXT_SELECT_FILE \
  201. _(" --select-file=INDEX... Set file to download by specifing its index.\n"\
  202. " You can find the file index using the\n"\
  203. " --show-files option. Multiple indexes can be\n"\
  204. " specified by using ',', for example: \"3,6\".\n"\
  205. " You can also use '-' to specify a range: \"1-5\".\n"\
  206. " ',' and '-' can be used together.\n"\
  207. " When used with the -M option, index may vary\n"\
  208. " depending on the query(see --metalink-* options).")
  209. #define TEXT_TORRENT_FILE \
  210. _(" -T, --torrent-file=TORRENT_FILE The path to the .torrent file.")
  211. #define TEXT_FOLLOW_TORRENT \
  212. _(" --follow-torrent=true|false|mem If true or mem is specified, when a file\n"\
  213. " whose suffix is .torrent or content type is\n"\
  214. " application/x-bittorrent is downloaded, aria2\n"\
  215. " parses it as a torrent file and downloads files\n"\
  216. " mentioned in it.\n"\
  217. " If mem is specified, a torrent file is not\n"\
  218. " written to the disk, but is just kept in memory.\n"\
  219. " If false is specified, the action mentioned above\n"\
  220. " is not taken.")
  221. #define TEXT_DIRECT_FILE_MAPPING \
  222. _(" --direct-file-mapping=true|false Directly read from and write to each file\n"\
  223. " mentioned in .torrent file.\n"\
  224. " Default: true")
  225. #define TEXT_LISTEN_PORT \
  226. _(" --listen-port=PORT... Set TCP port number for BitTorrent downloads.\n"\
  227. " Multiple ports can be specified by using ',',\n"\
  228. " for example: \"6881,6885\". You can also use '-'\n"\
  229. " to specify a range: \"6881-6999\". ',' and '-' can\n"\
  230. " be used together.")
  231. #define TEXT_MAX_UPLOAD_LIMIT \
  232. _(" --max-upload-limit=SPEED Set max upload speed in bytes per sec.\n"\
  233. " 0 means unrestricted.\n"\
  234. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  235. " Default: 0")
  236. #define TEXT_SEED_TIME \
  237. _(" --seed-time=MINUTES Specify seeding time in minutes. Also see the\n"\
  238. " --seed-ratio option.")
  239. #define TEXT_SEED_RATIO \
  240. _(" --seed-ratio=RATIO Specify share ratio. Seed completed torrents\n"\
  241. " until share ratio reaches RATIO. 1.0 is\n"\
  242. " encouraged. Specify 0.0 if you intend to do\n"\
  243. " seeding regardless of share ratio.\n"\
  244. " If --seed-time option is specified along with\n"\
  245. " this option, seeding ends when at least one of\n"\
  246. " the conditions is satisfied.")
  247. #define TEXT_PEER_ID_PREFIX \
  248. _(" --peer-id-prefix=PEERI_ID_PREFIX Specify the prefix of peer ID. The peer ID in\n"\
  249. " BitTorrent is 20 byte length. If more than 20\n"\
  250. " bytes are specified, only first 20\n"\
  251. " bytes are used. If less than 20 bytes are\n"\
  252. " specified, the random alphabet characters are\n"\
  253. " added to make it's length 20 bytes.\n"\
  254. " Default: -aria2-")
  255. #define TEXT_ENABLE_PEER_EXCHANGE \
  256. _(" --enable-peer-exchange[=true|false] Enable Peer Exchange extension.")
  257. #define TEXT_ENABLE_DHT \
  258. _(" --enable-dht[=true|false] Enable DHT functionality.")
  259. #define TEXT_DHT_LISTEN_PORT \
  260. _(" --dht-listen-port=PORT... Set UDP listening port for DHT.\n"\
  261. " Multiple ports can be specified by using ',',\n"\
  262. " for example: \"6881,6885\". You can also use '-'\n"\
  263. " to specify a range: \"6881-6999\". ',' and '-' can\n"\
  264. " be used together.")
  265. #define TEXT_DHT_ENTRY_POINT \
  266. _(" --dht-entry-point=HOST:PORT Set host and port as an entry point to DHT\n"\
  267. " network.")
  268. #define TEXT_BT_MIN_CRYPTO_LEVEL \
  269. _(" --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n"\
  270. " If several encryption methods are provided by a\n"\
  271. " peer, aria2 chooses a lowest one which satisfies\n"\
  272. " the given level.")
  273. #define TEXT_BT_REQUIRE_CRYPTO \
  274. _(" --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"\
  275. " establish connection with legacy BitTorrent\n"\
  276. " handshake. Thus aria2 always uses Obfuscation\n"\
  277. " handshake.")
  278. #define TEXT_BT_REQUEST_PEER_SPEED_LIMIT \
  279. _(" --bt-request-peer-speed-limit=SPEED In BitTorrent downloads, if the download\n"\
  280. " speed is lower than SPEED, aria2 initiates and\n"\
  281. " accepts connections ignoring max peer cap.\n"\
  282. " You can append K or M(1K = 1024, 1M = 1024K).")
  283. #define TEXT_BT_MAX_OPEN_FILES \
  284. _(" --bt-max-open-files=NUM Specify maximum number of files to open in each\n"\
  285. " BitTorrent download.")
  286. #define TEXT_BT_SEED_UNVERIFIED \
  287. _(" --bt-seed-unverified[=true|false] Seed previously downloaded files without\n"\
  288. " verifying piece hashes.")
  289. #define TEXT_METALINK_FILE \
  290. _(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file.")
  291. #define TEXT_METALINK_SERVERS \
  292. _(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\
  293. " simultaneously.")
  294. #define TEXT_METALINK_VERSION \
  295. _(" --metalink-version=VERSION The version of the file to download.")
  296. #define TEXT_METALINK_LANGUAGE \
  297. _(" --metalink-language=LANGUAGE The language of the file to download.")
  298. #define TEXT_METALINK_OS \
  299. _(" --metalink-os=OS The operating system of the file to download.")
  300. #define TEXT_METALINK_LOCATION \
  301. _(" --metalink-location=LOCATION[,...] The location of the preferred server.\n"\
  302. " A comma-deliminated list of locations is\n"\
  303. " acceptable.")
  304. #define TEXT_METALINK_PREFERRED_PROTOCOL \
  305. _(" --metalink-preferred-protocol=PROTO Specify preferred protocol. The possible\n"\
  306. " values are 'http', 'https', 'ftp' and 'none'.\n"\
  307. " Specifiy none to disable this feature.")
  308. #define TEXT_FOLLOW_METALINK \
  309. _(" --follow-metalink=true|false|mem If true or mem is specified, when a file\n"\
  310. " whose suffix is .metaink or content type is\n"\
  311. " application/metalink+xml is downloaded, aria2\n"\
  312. " parses it as a metalink file and downloads files\n"\
  313. " mentioned in it.\n"\
  314. " If mem is specified, a metalink file is not\n"\
  315. " written to the disk, but is just kept in memory.\n"\
  316. " If false is specified, the action mentioned above\n"\
  317. " is not taken.")
  318. #define TEXT_METALINK_ENABLE_UNIQUE_PROTOCOL \
  319. _(" --metalink-enable-unique-protocol=true|false If true is given and several\n"\
  320. " protocols are available for a mirror in a metalink\n"\
  321. " file, aria2 uses one of them.\n"\
  322. " Use --metalink-preferred-protocol option to\n"\
  323. " specify the preference of protocol.")
  324. #define TEXT_VERSION \
  325. _(" -v, --version Print the version number and exit.")
  326. #define TEXT_HELP \
  327. _(" -h, --help[=CATEGORY] Print usage and exit.\n"\
  328. " The help messages are classified in several\n"\
  329. " categories. For example, type \"--help=http\" for\n"\
  330. " detailed explanation for the options related to\n"\
  331. " http. If no matching category is found, search\n"\
  332. " option name using a given word, in forward match\n"\
  333. " and print the result.")
  334. #define TEXT_NO_CONF \
  335. _(" --no-conf Disable loading aria2.conf file.")
  336. #define TEXT_CONF_PATH \
  337. _(" --conf-path=PATH Change the configuration file path to PATH.")
  338. #define TEXT_STOP \
  339. _(" --stop=SEC Stop application after SEC seconds has passed.\n" \
  340. " If 0 is given, this feature is disabled.")
  341. #define TEXT_HEADER \
  342. _(" --header=HEADER Append HEADER to HTTP request header. You can use\n"\
  343. " this option repeatedly to specify more than one\n"\
  344. " header:\n"\
  345. " aria2c --header=\"X-A: b78\" --header=\"X-B: 9J1\"\n"\
  346. " http://host/file")
  347. #define TEXT_QUIET \
  348. _(" -q, --quiet[=true|false] Make aria2 quite (no console output).")
  349. #define TEXT_ASYNC_DNS \
  350. _(" --async-dns[=true|false] Enable asynchronous DNS.")
  351. #define TEXT_FTP_REUSE_CONNECTION \
  352. _(" --ftp-reuse-connection[=true|false] Reuse connection in FTP.")
  353. #define TEXT_SUMMARY_INTERVAL \
  354. _(" --summary-interval=SEC Set interval to output download progress summary.\n"\
  355. " Setting 0 suppresses the output.")
  356. #define TEXT_LOG_LEVEL \
  357. _(" --log-level=LEVEL Set log level to output.")