usage_text.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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. N must be\n"\
  46. " between 1 and 5. This option affects all URLs.\n"\
  47. " Thus, aria2 connects to each URL with\n"\
  48. " N connections.\n"\
  49. " Default: 1")
  50. #define TEXT_RETRY_WAIT \
  51. _(" --retry-wait=SEC Set the seconds to wait to retry after an error\n"\
  52. " has occured. Specify a value between 0 and 60.\n"\
  53. " Default: 5")
  54. #define TEXT_TIMEOUT \
  55. _(" -t, --timeout=SEC Set timeout in seconds. Default: 60")
  56. #define TEXT_MAX_TRIES \
  57. _(" -m, --max-tries=N Set number of tries. 0 means unlimited.\n"\
  58. " Default: 5")
  59. #define TEXT_HTTP_PROXY \
  60. _(" --http-proxy=HOST:PORT Use HTTP proxy server. This affects all URLs.")
  61. #define TEXT_HTTP_USER \
  62. _(" --http-user=USER Set HTTP user. This affects all URLs.")
  63. #define TEXT_HTTP_PASSWD \
  64. _(" --http-passwd=PASSWD Set HTTP password. This affects all URLs.")
  65. #define TEXT_HTTP_PROXY_USER \
  66. _(" --http-proxy-user=USER Set HTTP proxy user. This affects all URLs.")
  67. #define TEXT_HTTP_PROXY_PASSWD \
  68. _(" --http-proxy-passwd=PASSWD Set HTTP proxy password. This affects all URLs.")
  69. #define TEXT_HTTP_PROXY_METHOD \
  70. _(" --http-proxy-method=METHOD Set the method to use in proxy request.\n"\
  71. " METHOD is either 'get' or 'tunnel'.\n"\
  72. " Default: tunnel")
  73. #define TEXT_HTTP_AUTH_SCHEME \
  74. _(" --http-auth-scheme=SCHEME Set HTTP authentication scheme. Currently, basic\n"\
  75. " is the only supported scheme.\n"\
  76. " Default: basic")
  77. #define TEXT_REFERER \
  78. _(" --referer=REFERER Set Referer. This affects all URLs.")
  79. #define TEXT_FTP_USER \
  80. _(" --ftp-user=USER Set FTP user. This affects all URLs.\n"\
  81. " Default: anonymous")
  82. #define TEXT_FTP_PASSWD \
  83. _(" --ftp-passwd=PASSWD Set FTP password. This affects all URLs.\n"\
  84. " Default: ARIA2USER@")
  85. #define TEXT_FTP_TYPE \
  86. _(" --ftp-type=TYPE Set FTP transfer type. TYPE is either 'binary'\n"\
  87. " or 'ascii'.\n"\
  88. " Default: binary")
  89. #define TEXT_FTP_PASV \
  90. _(" -p, --ftp-pasv Use passive mode in FTP.")
  91. #define TEXT_FTP_VIA_HTTP_PROXY \
  92. _(" --ftp-via-http-proxy=METHOD Use HTTP proxy in FTP. METHOD is either 'get' or\n"\
  93. " 'tunnel'.\n"\
  94. " Default: tunnel")
  95. #define TEXT_LOWEST_SPEED_LIMIT \
  96. _(" --lowest-speed-limit=SPEED Close connection if download speed is lower than\n"\
  97. " or equal to this value(bytes per sec).\n"\
  98. " 0 means aria2 does not have a lowest speed limit.\n"\
  99. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  100. " This option does not affect BitTorrent downloads.\n"\
  101. " Default: 0")
  102. #define TEXT_MAX_DOWNLOAD_LIMIT \
  103. _(" --max-download-limit=SPEED Set max download speed in bytes per sec.\n"\
  104. " 0 means unrestricted.\n"\
  105. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  106. " Default: 0")
  107. #define TEXT_FILE_ALLOCATION \
  108. _(" --file-allocation=METHOD Specify file allocation method. METHOD is either\n"\
  109. " 'none' or 'prealloc'. 'none' doesn't pre-allocate\n"\
  110. " file space. 'prealloc' pre-allocates file space\n"\
  111. " before download begins. This may take some time\n"\
  112. " depending on the size of the file.\n"\
  113. " Default: prealloc")
  114. #define TEXT_NO_FILE_ALLOCATION_LIMIT \
  115. _(" --no-file-allocation-limit=SIZE No file allocation is made for files whose\n"\
  116. " size is smaller than SIZE.\n"\
  117. " You can append K or M(1K = 1024, 1M = 1024K).")
  118. # define TEXT_ENABLE_DIRECT_IO \
  119. _(" --enable-direct-io[=true|false] Enable directI/O, which lowers cpu usage while\n"\
  120. " allocating files.\n"\
  121. " Turn off if you encounter any error")
  122. #define TEXT_ALLOW_OVERWRITE \
  123. _(" --allow-overwrite=true|false If false, aria2 doesn't download a file which\n"\
  124. " already exists but the corresponding .aria2 file\n"\
  125. " doesn't exist.\n"\
  126. " Default: false")
  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.\n"\
  136. " Default: false")
  137. #define TEXT_AUTO_FILE_RENAMING \
  138. _(" --auto-file-renaming[=true|false] Rename file name if the same file already\n"\
  139. " exists. This option works only in http(s)/ftp\n"\
  140. " download.\n"\
  141. " The new file name has a dot and a number(1..9999)\n"\
  142. " appended.\n"\
  143. " Default: true")
  144. #define TEXT_PARAMETERIZED_URI \
  145. _(" -P, --parameterized-uri[=true|false] Enable parameterized URI support.\n"\
  146. " You can specify set of parts:\n"\
  147. " http://{sv1,sv2,sv3}/foo.iso\n"\
  148. " Also you can specify numeric sequences with step\n"\
  149. " counter:\n"\
  150. " http://host/image[000-100:2].img\n"\
  151. " A step counter can be omitted.\n"\
  152. " If all URIs do not point to the same file, such\n"\
  153. " as the second example above, -Z option is\n"\
  154. " required.\n"\
  155. " Default: false")
  156. #define TEXT_ENABLE_HTTP_KEEP_ALIVE \
  157. _(" --enable-http-keep-alive[=true|false] Enable HTTP/1.1 persistent connection.\n"\
  158. " Default: false")
  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 concurrent downloads.\n"\
  192. " It should be used with the -i option.\n"\
  193. " Default: 5")
  194. #define TEXT_LOAD_COOKIES \
  195. _(" --load-cookies=FILE Load cookies from FILE. The format of FILE is\n"\
  196. " the same used by Netscape and Mozilla.")
  197. #define TEXT_SHOW_FILES \
  198. _(" -S, --show-files Print file listing of .torrent or .metalink file\n"\
  199. " and exit. More detailed information will be listed\n"\
  200. " in case of torrent file.")
  201. #define TEXT_SELECT_FILE \
  202. _(" --select-file=INDEX... Set file to download by specifing its index.\n"\
  203. " You can find the file index using the\n"\
  204. " --show-files option. Multiple indexes can be\n"\
  205. " specified by using ',', for example: \"3,6\".\n"\
  206. " You can also use '-' to specify a range: \"1-5\".\n"\
  207. " ',' and '-' can be used together.\n"\
  208. " When used with the -M option, index may vary\n"\
  209. " depending on the query(see --metalink-* options).")
  210. #define TEXT_TORRENT_FILE \
  211. _(" -T, --torrent-file=TORRENT_FILE The path to the .torrent file.")
  212. #define TEXT_FOLLOW_TORRENT \
  213. _(" --follow-torrent=true|false|mem If true or mem is specified, when a file\n"\
  214. " whose suffix is .torrent or content type is\n"\
  215. " application/x-bittorrent is downloaded, aria2\n"\
  216. " parses it as a torrent file and downloads files\n"\
  217. " mentioned in it.\n"\
  218. " If mem is specified, a torrent file is not\n"\
  219. " written to the disk, but is just kept in memory.\n"\
  220. " If false is specified, the action mentioned above\n"\
  221. " is not taken.")
  222. #define TEXT_DIRECT_FILE_MAPPING \
  223. _(" --direct-file-mapping=true|false Directly read from and write to each file\n"\
  224. " mentioned in .torrent file.\n"\
  225. " Default: true")
  226. #define TEXT_LISTEN_PORT \
  227. _(" --listen-port=PORT... Set TCP port number for BitTorrent downloads.\n"\
  228. " Multiple ports can be specified by using ',',\n"\
  229. " for example: \"6881,6885\". You can also use '-'\n"\
  230. " to specify a range: \"6881-6999\". ',' and '-' can\n"\
  231. " be used together.")
  232. #define TEXT_MAX_UPLOAD_LIMIT \
  233. _(" --max-upload-limit=SPEED Set max upload speed in bytes per sec.\n"\
  234. " 0 means unrestricted.\n"\
  235. " You can append K or M(1K = 1024, 1M = 1024K).\n"\
  236. " Default: 0")
  237. #define TEXT_SEED_TIME \
  238. _(" --seed-time=MINUTES Specify seeding time in minutes. Also see the\n"\
  239. " --seed-ratio option.")
  240. #define TEXT_SEED_RATIO \
  241. _(" --seed-ratio=RATIO Specify share ratio. Seed completed torrents\n"\
  242. " until share ratio reaches RATIO. 1.0 is\n"\
  243. " encouraged. Specify 0.0 if you intend to do\n"\
  244. " seeding regardless of share ratio.\n"\
  245. " If --seed-time option is specified along with\n"\
  246. " this option, seeding ends when at least one of\n"\
  247. " the conditions is satisfied.")
  248. #define TEXT_PEER_ID_PREFIX \
  249. _(" --peer-id-prefix=PEERI_ID_PREFIX Specify the prefix of peer ID. The peer ID in\n"\
  250. " BitTorrent is 20 byte length. If more than 20\n"\
  251. " bytes are specified, only first 20\n"\
  252. " bytes are used. If less than 20 bytes are\n"\
  253. " specified, the random alphabet characters are\n"\
  254. " added to make it's length 20 bytes.\n"\
  255. " Default: -aria2-")
  256. #define TEXT_ENABLE_PEER_EXCHANGE \
  257. _(" --enable-peer-exchange[=true|false] Enable Peer Exchange extension.")
  258. #define TEXT_ENABLE_DHT \
  259. _(" --enable-dht[=true|false] Enable DHT functionality.")
  260. #define TEXT_DHT_LISTEN_PORT \
  261. _(" --dht-listen-port=PORT... Set UDP listening port for DHT.\n"\
  262. " Multiple ports can be specified by using ',',\n"\
  263. " for example: \"6881,6885\". You can also use '-'\n"\
  264. " to specify a range: \"6881-6999\". ',' and '-' can\n"\
  265. " be used together.")
  266. #define TEXT_DHT_ENTRY_POINT \
  267. _(" --dht-entry-point=HOST:PORT Set host and port as an entry point to DHT\n"\
  268. " network.")
  269. #define TEXT_BT_MIN_CRYPTO_LEVEL \
  270. _(" --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n"\
  271. " If several encryption methods are provided by a\n"\
  272. " peer, aria2 chooses a lowest one which satisfies\n"\
  273. " the given level.")
  274. #define TEXT_BT_REQUIRE_CRYPTO \
  275. _(" --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"\
  276. " establish connection with legacy BitTorrent\n"\
  277. " handshake. Thus aria2 always uses Obfuscation\n"\
  278. " handshake.")
  279. #define TEXT_METALINK_FILE \
  280. _(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file.")
  281. #define TEXT_METALINK_SERVERS \
  282. _(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\
  283. " simultaneously.\n"\
  284. " Default: 5")
  285. #define TEXT_METALINK_VERSION \
  286. _(" --metalink-version=VERSION The version of the file to download.")
  287. #define TEXT_METALINK_LANGUAGE \
  288. _(" --metalink-language=LANGUAGE The language of the file to download.")
  289. #define TEXT_METALINK_OS \
  290. _(" --metalink-os=OS The operating system of the file to download.")
  291. #define TEXT_METALINK_LOCATION \
  292. _(" --metalink-location=LOCATION[,...] The location of the preferred server.\n"\
  293. " A comma-deliminated list of locations is\n"\
  294. " acceptable.")
  295. #define TEXT_METALINK_PREFERRED_PROTOCOL \
  296. _(" --metalink-preferred-protocol=PROTO Specify preferred protocol. The possible\n"\
  297. " values are 'http', 'https', 'ftp' and 'none'.\n"\
  298. " Specifiy none to disable this feature.")
  299. #define TEXT_FOLLOW_METALINK \
  300. _(" --follow-metalink=true|false|mem If true or mem is specified, when a file\n"\
  301. " whose suffix is .metaink or content type is\n"\
  302. " application/metalink+xml is downloaded, aria2\n"\
  303. " parses it as a metalink file and downloads files\n"\
  304. " mentioned in it.\n"\
  305. " If mem is specified, a metalink file is not\n"\
  306. " written to the disk, but is just kept in memory.\n"\
  307. " If false is specified, the action mentioned above\n"\
  308. " is not taken.")
  309. #define TEXT_METALINK_ENABLE_UNIQUE_PROTOCOL \
  310. _(" --metalink-enable-unique-protocol=true|false If true is given and several\n"\
  311. " protocols are available for a mirror in a metalink\n"\
  312. " file, aria2 uses one of them.\n"\
  313. " Use --metalink-preferred-protocol option to\n"\
  314. " specify the preference of protocol.")
  315. #define TEXT_VERSION \
  316. _(" -v, --version Print the version number and exit.")
  317. #define TEXT_HELP \
  318. _(" -h, --help[=CATEGORY] Print usage and exit.\n"\
  319. " The help messages are classified in several\n"\
  320. " categories. For example, type \"--help=http\" for\n"\
  321. " detailed explanation for the options related to\n"\
  322. " http. If no matching category is found, search\n"\
  323. " option name using a given word, in forward match\n"\
  324. " and print the result.")
  325. #define TEXT_NO_CONF \
  326. _(" --no-conf Disable loading aria2.conf file.")
  327. #define TEXT_CONF_PATH \
  328. _(" --conf-path=PATH Change the configuration file path to PATH.")
  329. #define TEXT_STOP \
  330. _(" --stop=SEC Stop application after SEC seconds has passed.\n" \
  331. " If 0 is given, this feature is disabled.")