2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Untabify. Fixed one line in copyright which is longer than 80
	columns.
	* src
	* test
pull/1/head
Tatsuhiro Tsujikawa 2010-01-05 16:01:46 +00:00
parent 338e8aca09
commit 4db349c1f3
827 changed files with 7343 additions and 7336 deletions

View File

@ -1,3 +1,10 @@
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Untabify. Fixed one line in copyright which is longer than 80
columns.
* src
* test
2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Release 1.8.0 Release 1.8.0

View File

@ -42,7 +42,7 @@ namespace aria2 {
#ifdef HAVE_LIBCARES1_5 #ifdef HAVE_LIBCARES1_5
void callback(void* arg, int status, int timeouts, struct hostent* host) void callback(void* arg, int status, int timeouts, struct hostent* host)
#else #else
void callback(void* arg, int status, struct hostent* host) void callback(void* arg, int status, struct hostent* host)
#endif // HAVE_LIBCARES1_5 #endif // HAVE_LIBCARES1_5
{ {
AsyncNameResolver* resolverPtr = reinterpret_cast<AsyncNameResolver*>(arg); AsyncNameResolver* resolverPtr = reinterpret_cast<AsyncNameResolver*>(arg);

View File

@ -57,7 +57,7 @@ BtSeederStateChoke::PeerEntry::PeerEntry
_lastAmUnchoking(peer->getLastAmUnchoking()), _lastAmUnchoking(peer->getLastAmUnchoking()),
_recentUnchoking(!_lastAmUnchoking.elapsed(TIME_FRAME)), _recentUnchoking(!_lastAmUnchoking.elapsed(TIME_FRAME)),
_uploadSpeed(peer->calculateUploadSpeed(now)) _uploadSpeed(peer->calculateUploadSpeed(now))
{} {}
bool bool
BtSeederStateChoke::PeerEntry::operator<(const PeerEntry& rhs) const BtSeederStateChoke::PeerEntry::operator<(const PeerEntry& rhs) const

View File

@ -157,10 +157,10 @@ void DHTRoutingTable::dropNode(const SharedHandle<DHTNode>& node)
getBucketFor(node)->dropNode(node); getBucketFor(node)->dropNode(node);
} }
/* /*
void DHTRoutingTable::moveBucketHead(const SharedHandle<DHTNode>& node) void DHTRoutingTable::moveBucketHead(const SharedHandle<DHTNode>& node)
{ {
getBucketFor(node)->moveToHead(node); getBucketFor(node)->moveToHead(node);
} }
*/ */
void DHTRoutingTable::moveBucketTail(const SharedHandle<DHTNode>& node) void DHTRoutingTable::moveBucketTail(const SharedHandle<DHTNode>& node)
{ {

View File

@ -341,9 +341,9 @@ void DefaultPieceStorage::completePiece(const PieceHandle& piece)
return; return;
} }
deleteUsedPiece(piece); deleteUsedPiece(piece);
// if(!isEndGame()) { // if(!isEndGame()) {
// reduceUsedPieces(100); // reduceUsedPieces(100);
// } // }
if(allDownloadFinished()) { if(allDownloadFinished()) {
return; return;
} }

View File

@ -100,8 +100,8 @@ private:
#endif // ENABLE_BITTORRENT #endif // ENABLE_BITTORRENT
SharedHandle<Piece> checkOutPiece(size_t index); SharedHandle<Piece> checkOutPiece(size_t index);
// size_t deleteUsedPiecesByFillRate(int fillRate, size_t toDelete); // size_t deleteUsedPiecesByFillRate(int fillRate, size_t toDelete);
// void reduceUsedPieces(size_t upperBound); // void reduceUsedPieces(size_t upperBound);
void deleteUsedPiece(const SharedHandle<Piece>& piece); void deleteUsedPiece(const SharedHandle<Piece>& piece);
SharedHandle<Piece> findUsedPiece(size_t index) const; SharedHandle<Piece> findUsedPiece(size_t index) const;

View File

@ -64,9 +64,9 @@ public:
RecoverableException(file, line, msg, code) {} RecoverableException(file, line, msg, code) {}
}; };
#define DOWNLOAD_FAILURE_EXCEPTION(arg)\ #define DOWNLOAD_FAILURE_EXCEPTION(arg) \
DownloadFailureException(__FILE__, __LINE__, arg) DownloadFailureException(__FILE__, __LINE__, arg)
#define DOWNLOAD_FAILURE_EXCEPTION2(arg1, arg2)\ #define DOWNLOAD_FAILURE_EXCEPTION2(arg1, arg2) \
DownloadFailureException(__FILE__, __LINE__, arg1, arg2) DownloadFailureException(__FILE__, __LINE__, arg1, arg2)
} // namespace aria2 } // namespace aria2

View File

@ -54,9 +54,9 @@ public:
FatalException(const FatalException& e):Exception(e) {} FatalException(const FatalException& e):Exception(e) {}
}; };
#define FATAL_EXCEPTION(arg)\ #define FATAL_EXCEPTION(arg) \
FatalException(__FILE__, __LINE__, arg) FatalException(__FILE__, __LINE__, arg)
#define FATAL_EXCEPTION2(arg1, arg2)\ #define FATAL_EXCEPTION2(arg1, arg2) \
FatalException(__FILE__, __LINE__, arg1, arg2) FatalException(__FILE__, __LINE__, arg1, arg2)
} // namespace aria2 } // namespace aria2

View File

@ -4,7 +4,7 @@
* *
* Copyright (C) 2006 Tatsuhiro Tsujikawa * Copyright (C) 2006 Tatsuhiro Tsujikawa
* *
nn * This program is free software; you can redistribute it and/or modify nn * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.

View File

@ -244,11 +244,11 @@ std::string HttpRequest::createProxyRequest() const
strappend(requestLine, "User-Agent: ", userAgent, "\r\n"); strappend(requestLine, "User-Agent: ", userAgent, "\r\n");
strappend(requestLine, "Host: ", hostport, "\r\n"); strappend(requestLine, "Host: ", hostport, "\r\n");
// TODO Is "Proxy-Connection" needed here? // TODO Is "Proxy-Connection" needed here?
// if(request->isKeepAliveEnabled() || request->isPipeliningEnabled()) { // if(request->isKeepAliveEnabled() || request->isPipeliningEnabled()) {
// requestLine += "Proxy-Connection: Keep-Alive\r\n"; // requestLine += "Proxy-Connection: Keep-Alive\r\n";
// }else { // }else {
// requestLine += "Proxy-Connection: close\r\n"; // requestLine += "Proxy-Connection: close\r\n";
// } // }
if(!_proxyRequest->getUsername().empty()) { if(!_proxyRequest->getUsername().empty()) {
requestLine += getProxyAuthString(); requestLine += getProxyAuthString();
} }

View File

@ -270,8 +270,8 @@ void MultiDiskAdaptor::openIfNot
(const SharedHandle<DiskWriterEntry>& entry, void (DiskWriterEntry::*open)()) (const SharedHandle<DiskWriterEntry>& entry, void (DiskWriterEntry::*open)())
{ {
if(!entry->isOpen()) { if(!entry->isOpen()) {
// logger->debug("DiskWriterEntry: Cache MISS. offset=%s", // logger->debug("DiskWriterEntry: Cache MISS. offset=%s",
// util::itos(entry->getFileEntry()->getOffset()).c_str()); // util::itos(entry->getFileEntry()->getOffset()).c_str());
size_t numOpened = _openedDiskWriterEntries.size(); size_t numOpened = _openedDiskWriterEntries.size();
(entry.get()->*open)(); (entry.get()->*open)();
@ -288,8 +288,8 @@ void MultiDiskAdaptor::openIfNot
_openedDiskWriterEntries.push_back(entry); _openedDiskWriterEntries.push_back(entry);
} }
} else { } else {
// logger->debug("DiskWriterEntry: Cache HIT. offset=%s", // logger->debug("DiskWriterEntry: Cache HIT. offset=%s",
// util::itos(entry->getFileEntry()->getOffset()).c_str()); // util::itos(entry->getFileEntry()->getOffset()).c_str());
} }
} }

View File

@ -60,9 +60,9 @@ public:
const std::string& getOptionName() const throw(); const std::string& getOptionName() const throw();
}; };
#define OPTION_HANDLER_EXCEPTION(arg)\ #define OPTION_HANDLER_EXCEPTION(arg) \
OptionHandlerException(__FILE__, __LINE__, arg) OptionHandlerException(__FILE__, __LINE__, arg)
#define OPTION_HANDLER_EXCEPTION2(arg1, arg2)\ #define OPTION_HANDLER_EXCEPTION2(arg1, arg2) \
OptionHandlerException(__FILE__, __LINE__, arg1, arg2) OptionHandlerException(__FILE__, __LINE__, arg1, arg2)
} // namespace aria2 } // namespace aria2

View File

@ -151,7 +151,7 @@ void Peer::peerInterested(bool b)
_res->peerInterested(b); _res->peerInterested(b);
} }
// this peer should be choked // this peer should be choked
bool Peer::chokingRequired() const bool Peer::chokingRequired() const
{ {
assert(_res); assert(_res);

View File

@ -95,7 +95,7 @@ static void mlCharacters(void* userData, const xmlChar* ch, int len)
} }
static xmlSAXHandler mySAXHandler = static xmlSAXHandler mySAXHandler =
{ {
0, // internalSubsetSAXFunc 0, // internalSubsetSAXFunc
0, // isStandaloneSAXFunc 0, // isStandaloneSAXFunc
0, // hasInternalSubsetSAXFunc 0, // hasInternalSubsetSAXFunc
@ -128,7 +128,7 @@ static xmlSAXHandler mySAXHandler =
0, // startElementNsSAX2Func 0, // startElementNsSAX2Func
0, // endElementNsSAX2Func 0, // endElementNsSAX2Func
0, // xmlStructuredErrorFunc 0, // xmlStructuredErrorFunc
}; };
SharedHandle<Metalinker> SharedHandle<Metalinker>
MetalinkProcessor::parseFile(const std::string& filename) MetalinkProcessor::parseFile(const std::string& filename)

View File

@ -99,7 +99,7 @@ static void mlCharacters(void* userData, const xmlChar* ch, int len)
} }
static xmlSAXHandler mySAXHandler = static xmlSAXHandler mySAXHandler =
{ {
0, // internalSubsetSAXFunc 0, // internalSubsetSAXFunc
0, // isStandaloneSAXFunc 0, // isStandaloneSAXFunc
0, // hasInternalSubsetSAXFunc 0, // hasInternalSubsetSAXFunc
@ -132,7 +132,7 @@ static xmlSAXHandler mySAXHandler =
0, // startElementNsSAX2Func 0, // startElementNsSAX2Func
0, // endElementNsSAX2Func 0, // endElementNsSAX2Func
0, // xmlStructuredErrorFunc 0, // xmlStructuredErrorFunc
}; };
XmlRpcRequest XmlRpcRequest
XmlRpcRequestProcessor::parseMemory(const std::string& xml) XmlRpcRequestProcessor::parseMemory(const std::string& xml)

View File

@ -39,9 +39,9 @@
# undef SIZE_MAX # undef SIZE_MAX
# ifndef _OFF_T_ # ifndef _OFF_T_
# define _OFF_T_ # define _OFF_T_
typedef long long _off_t; typedef long long _off_t;
# ifndef _NO_OLDNAMES # ifndef _NO_OLDNAMES
typedef _off_t off_t; typedef _off_t off_t;
# endif // !_NO_OLDNAMES # endif // !_NO_OLDNAMES
# endif // !_OFF_T_ # endif // !_OFF_T_
#endif // __MINGW32__ #endif // __MINGW32__

View File

@ -89,7 +89,7 @@
#define MSG_TRACKER_REQUEST_CREATION_FAILED _("CUID#%d - Cannot create tracker request.") #define MSG_TRACKER_REQUEST_CREATION_FAILED _("CUID#%d - Cannot create tracker request.")
#define MSG_CREATING_TRACKER_REQUEST _("CUID#%d - Creating new tracker request command #%d") #define MSG_CREATING_TRACKER_REQUEST _("CUID#%d - Creating new tracker request command #%d")
#define MSG_DHT_ENABLED_PEER _("CUID#%d - The peer is DHT-enabled.") #define MSG_DHT_ENABLED_PEER _("CUID#%d - The peer is DHT-enabled.")
#define MSG_CONNECT_FAILED_AND_RETRY "CUID#%d - Could not to connect to %s:%u."\ #define MSG_CONNECT_FAILED_AND_RETRY "CUID#%d - Could not to connect to %s:%u." \
" Trying another address" " Trying another address"
#define MSG_UNRECOGNIZED_URI _("Unrecognized URI or unsupported protocol: %s") #define MSG_UNRECOGNIZED_URI _("Unrecognized URI or unsupported protocol: %s")
@ -141,9 +141,9 @@
#define MSG_NULL_TRACKER_RESPONSE _("Tracker returned null data.") #define MSG_NULL_TRACKER_RESPONSE _("Tracker returned null data.")
#define MSG_WINSOCK_INIT_FAILD _("Windows socket library initialization failed") #define MSG_WINSOCK_INIT_FAILD _("Windows socket library initialization failed")
#define MSG_TIME_HAS_PASSED _("%d second(s) has passed. Stopping application.") #define MSG_TIME_HAS_PASSED _("%d second(s) has passed. Stopping application.")
#define MSG_SIGNATURE_SAVED _("Saved signature as %s. Please note that aria2"\ #define MSG_SIGNATURE_SAVED _("Saved signature as %s. Please note that aria2" \
" doesn't verify signatures.") " doesn't verify signatures.")
#define MSG_SIGNATURE_NOT_SAVED _("Saving signature as %s failed. Maybe file"\ #define MSG_SIGNATURE_NOT_SAVED _("Saving signature as %s failed. Maybe file" \
" already exists.") " already exists.")
#define MSG_OPENING_READABLE_SERVER_STAT_FILE_FAILED \ #define MSG_OPENING_READABLE_SERVER_STAT_FILE_FAILED \
_("Failed to open ServerStat file %s for read.") _("Failed to open ServerStat file %s for read.")
@ -153,7 +153,7 @@
#define MSG_OPENING_WRITABLE_SERVER_STAT_FILE_FAILED \ #define MSG_OPENING_WRITABLE_SERVER_STAT_FILE_FAILED \
_("Failed to open ServerStat file %s for write.") _("Failed to open ServerStat file %s for write.")
#define MSG_SERVER_STAT_SAVED _("ServerStat file %s saved successfully.") #define MSG_SERVER_STAT_SAVED _("ServerStat file %s saved successfully.")
#define MSG_WRITING_SERVER_STAT_FILE_FAILED _("Failed to write ServerStat to"\ #define MSG_WRITING_SERVER_STAT_FILE_FAILED _("Failed to write ServerStat to" \
" %s.") " %s.")
#define MSG_ESTABLISHING_CONNECTION_FAILED \ #define MSG_ESTABLISHING_CONNECTION_FAILED \
_("Failed to establish connection, cause: %s") _("Failed to establish connection, cause: %s")
@ -166,19 +166,19 @@
#define MSG_HOSTNAME_NOT_MATCH _("Hostname not match.") #define MSG_HOSTNAME_NOT_MATCH _("Hostname not match.")
#define MSG_NO_FILES_TO_DOWNLOAD _("No files to download.") #define MSG_NO_FILES_TO_DOWNLOAD _("No files to download.")
#define MSG_WARN_NO_CA_CERT \ #define MSG_WARN_NO_CA_CERT \
_("You may encounter the certificate verification error with HTTPS server."\ _("You may encounter the certificate verification error with HTTPS server." \
" See --ca-certificate and --check-certificate option.") " See --ca-certificate and --check-certificate option.")
#define MSG_SHOW_FILES _("Printing the contents of file '%s'...") #define MSG_SHOW_FILES _("Printing the contents of file '%s'...")
#define MSG_NOT_TORRENT_METALINK _("This file is neither Torrent nor Metalink"\ #define MSG_NOT_TORRENT_METALINK _("This file is neither Torrent nor Metalink" \
" file. Skipping.") " file. Skipping.")
#define MSG_GID_NOT_PROVIDED "GID is not provided." #define MSG_GID_NOT_PROVIDED "GID is not provided."
#define MSG_CANNOT_PARSE_XML_RPC_REQUEST "Failed to parse xml-rpc request." #define MSG_CANNOT_PARSE_XML_RPC_REQUEST "Failed to parse xml-rpc request."
#define MSG_GOOD_BYE_SEEDER "Client is in seed state: Good Bye Seeder;)" #define MSG_GOOD_BYE_SEEDER "Client is in seed state: Good Bye Seeder;)"
#define MSG_NOT_FILE _("Is '%s' a file?") #define MSG_NOT_FILE _("Is '%s' a file?")
#define MSG_INTERFACE_NOT_FOUND _("Failed to find given interface %s,"\ #define MSG_INTERFACE_NOT_FOUND _("Failed to find given interface %s," \
" cause: %s") " cause: %s")
#define MSG_METADATA_SAVED _("Saved metadata as %s.") #define MSG_METADATA_SAVED _("Saved metadata as %s.")
#define MSG_METADATA_NOT_SAVED _("Saving metadata as %s failed. Maybe file"\ #define MSG_METADATA_NOT_SAVED _("Saving metadata as %s failed. Maybe file" \
" already exists.") " already exists.")
#define EX_TIME_OUT _("Timeout.") #define EX_TIME_OUT _("Timeout.")

View File

@ -1,7 +1,7 @@
/* /*
* aria2 - The high speed download utility * aria2 - The high speed download utility
* *
* Copyright (C) 2006 Tatsuhiro Tsujikawa * Copyright (C) 2010 Tatsuhiro Tsujikawa
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -34,556 +34,556 @@
/* copyright --> */ /* copyright --> */
#define TEXT_DIR \ #define TEXT_DIR \
_(" -d, --dir=DIR The directory to store the downloaded file.") _(" -d, --dir=DIR The directory to store the downloaded file.")
#define TEXT_OUT \ #define TEXT_OUT \
_(" -o, --out=FILE The file name of the downloaded file.") _(" -o, --out=FILE The file name of the downloaded file.")
#define TEXT_LOG \ #define TEXT_LOG \
_(" -l, --log=LOG The file name of the log file. If '-' is\n"\ _(" -l, --log=LOG The file name of the log file. If '-' is\n" \
" specified, log is written to stdout.") " specified, log is written to stdout.")
#define TEXT_DAEMON \ #define TEXT_DAEMON \
_(" -D, --daemon Run as daemon. The current working directory will\n"\ _(" -D, --daemon Run as daemon. The current working directory will\n" \
" be changed to \"/\" and standard input, standard\n"\ " be changed to \"/\" and standard input, standard\n" \
" output and standard error will be redirected to\n"\ " output and standard error will be redirected to\n" \
" \"/dev/null\".") " \"/dev/null\".")
#define TEXT_SPLIT \ #define TEXT_SPLIT \
_(" -s, --split=N Download a file using N connections. If more\n"\ _(" -s, --split=N Download a file using N connections. If more\n" \
" than N URLs are given, first N URLs are used and\n"\ " than N URLs are given, first N URLs are used and\n" \
" remaining URLs are used for backup. If less than\n"\ " remaining URLs are used for backup. If less than\n" \
" N URLs are given, those URLs are used more than\n"\ " N URLs are given, those URLs are used more than\n" \
" once so that N connections total are made\n"\ " once so that N connections total are made\n" \
" simultaneously. Please see -j option too.\n"\ " simultaneously. Please see -j option too.\n" \
" Please note that in Metalink download, this\n"\ " Please note that in Metalink download, this\n" \
" option has no effect and use -C option instead.") " option has no effect and use -C option instead.")
#define TEXT_RETRY_WAIT \ #define TEXT_RETRY_WAIT \
_(" --retry-wait=SEC Set the seconds to wait to retry after an error\n"\ _(" --retry-wait=SEC Set the seconds to wait to retry after an error\n" \
" has occured.") " has occured.")
#define TEXT_TIMEOUT \ #define TEXT_TIMEOUT \
_(" -t, --timeout=SEC Set timeout in seconds.") _(" -t, --timeout=SEC Set timeout in seconds.")
#define TEXT_MAX_TRIES \ #define TEXT_MAX_TRIES \
_(" -m, --max-tries=N Set number of tries. 0 means unlimited.") _(" -m, --max-tries=N Set number of tries. 0 means unlimited.")
#define TEXT_HTTP_PROXY \ #define TEXT_HTTP_PROXY \
_(" --http-proxy=PROXY Use this proxy server for HTTP.\n"\ _(" --http-proxy=PROXY Use this proxy server for HTTP.\n" \
" See also --all-proxy option.\n"\ " See also --all-proxy option.\n" \
" This affects all URLs.") " This affects all URLs.")
#define TEXT_HTTPS_PROXY \ #define TEXT_HTTPS_PROXY \
_(" --https-proxy=PROXY Use this proxy server for HTTPS.\n"\ _(" --https-proxy=PROXY Use this proxy server for HTTPS.\n" \
" See also --all-proxy option.\n"\ " See also --all-proxy option.\n" \
" This affects all URLs.") " This affects all URLs.")
#define TEXT_FTP_PROXY \ #define TEXT_FTP_PROXY \
_(" --ftp-proxy=PROXY Use this proxy server for FTP.\n"\ _(" --ftp-proxy=PROXY Use this proxy server for FTP.\n" \
" See also --all-proxy option.\n"\ " See also --all-proxy option.\n" \
" This affects all URLs.") " This affects all URLs.")
#define TEXT_ALL_PROXY \ #define TEXT_ALL_PROXY \
_(" --all-proxy=PROXY Use this proxy server for all protocols.\n"\ _(" --all-proxy=PROXY Use this proxy server for all protocols.\n" \
" You can override this setting and specify a\n"\ " You can override this setting and specify a\n" \
" proxy server for a particular protocol using\n"\ " proxy server for a particular protocol using\n" \
" --http-proxy, --https-proxy and --ftp-proxy\n"\ " --http-proxy, --https-proxy and --ftp-proxy\n" \
" options.\n"\ " options.\n" \
" This affects all URLs.") " This affects all URLs.")
#define TEXT_HTTP_USER \ #define TEXT_HTTP_USER \
_(" --http-user=USER Set HTTP user. This affects all URLs.") _(" --http-user=USER Set HTTP user. This affects all URLs.")
#define TEXT_HTTP_PASSWD \ #define TEXT_HTTP_PASSWD \
_(" --http-passwd=PASSWD Set HTTP password. This affects all URLs.") _(" --http-passwd=PASSWD Set HTTP password. This affects all URLs.")
#define TEXT_PROXY_METHOD \ #define TEXT_PROXY_METHOD \
_(" --proxy-method=METHOD Set the method to use in proxy request.") _(" --proxy-method=METHOD Set the method to use in proxy request.")
#define TEXT_REFERER \ #define TEXT_REFERER \
_(" --referer=REFERER Set Referer. This affects all URLs.") _(" --referer=REFERER Set Referer. This affects all URLs.")
#define TEXT_FTP_USER \ #define TEXT_FTP_USER \
_(" --ftp-user=USER Set FTP user. This affects all URLs.") _(" --ftp-user=USER Set FTP user. This affects all URLs.")
#define TEXT_FTP_PASSWD \ #define TEXT_FTP_PASSWD \
_(" --ftp-passwd=PASSWD Set FTP password. This affects all URLs.") _(" --ftp-passwd=PASSWD Set FTP password. This affects all URLs.")
#define TEXT_FTP_TYPE \ #define TEXT_FTP_TYPE \
_(" --ftp-type=TYPE Set FTP transfer type.") _(" --ftp-type=TYPE Set FTP transfer type.")
#define TEXT_FTP_PASV \ #define TEXT_FTP_PASV \
_(" -p, --ftp-pasv[=true|false] Use the passive mode in FTP. If false is given,\n"\ _(" -p, --ftp-pasv[=true|false] Use the passive mode in FTP. If false is given,\n" \
" the active mode will be used.") " the active mode will be used.")
#define TEXT_LOWEST_SPEED_LIMIT \ #define TEXT_LOWEST_SPEED_LIMIT \
_(" --lowest-speed-limit=SPEED Close connection if download speed is lower than\n"\ _(" --lowest-speed-limit=SPEED Close connection if download speed is lower than\n" \
" or equal to this value(bytes per sec).\n"\ " or equal to this value(bytes per sec).\n" \
" 0 means aria2 does not have a lowest speed limit.\n"\ " 0 means aria2 does not have a lowest speed limit.\n" \
" You can append K or M(1K = 1024, 1M = 1024K).\n"\ " You can append K or M(1K = 1024, 1M = 1024K).\n" \
" This option does not affect BitTorrent downloads.") " This option does not affect BitTorrent downloads.")
#define TEXT_MAX_OVERALL_DOWNLOAD_LIMIT \ #define TEXT_MAX_OVERALL_DOWNLOAD_LIMIT \
_(" --max-overall-download-limit=SPEED Set max overall download speed in bytes/sec.\n"\ _(" --max-overall-download-limit=SPEED Set max overall download speed in bytes/sec.\n" \
" 0 means unrestricted.\n"\ " 0 means unrestricted.\n" \
" You can append K or M(1K = 1024, 1M = 1024K).\n"\ " You can append K or M(1K = 1024, 1M = 1024K).\n" \
" To limit the download speed per download, use\n"\ " To limit the download speed per download, use\n" \
" --max-download-limit option.") " --max-download-limit option.")
#define TEXT_MAX_DOWNLOAD_LIMIT \ #define TEXT_MAX_DOWNLOAD_LIMIT \
_(" --max-download-limit=SPEED Set max download speed per each download in\n"\ _(" --max-download-limit=SPEED Set max download speed per each download in\n" \
" bytes/sec. 0 means unrestricted.\n"\ " bytes/sec. 0 means unrestricted.\n" \
" You can append K or M(1K = 1024, 1M = 1024K).\n"\ " You can append K or M(1K = 1024, 1M = 1024K).\n" \
" To limit the overall download speed, use\n"\ " To limit the overall download speed, use\n" \
" --max-overall-download-limit option.") " --max-overall-download-limit option.")
#define TEXT_FILE_ALLOCATION \ #define TEXT_FILE_ALLOCATION \
_(" --file-allocation=METHOD Specify file allocation method.\n"\ _(" --file-allocation=METHOD Specify file allocation method.\n" \
" 'none' doesn't pre-allocate file space. 'prealloc'\n"\ " 'none' doesn't pre-allocate file space. 'prealloc'\n" \
" pre-allocates file space before download begins.\n"\ " pre-allocates file space before download begins.\n" \
" This may take some time depending on the size of\n"\ " This may take some time depending on the size of\n" \
" the file.\n"\ " the file.\n" \
" If you are using newer file systems such as ext4\n"\ " If you are using newer file systems such as ext4\n" \
" (with extents support), btrfs or xfs, 'falloc' is\n"\ " (with extents support), btrfs or xfs, 'falloc' is\n" \
" your best choice. It allocates large(few GiB)\n"\ " your best choice. It allocates large(few GiB)\n" \
" files almost instantly. Don't use 'falloc' with\n"\ " files almost instantly. Don't use 'falloc' with\n" \
" legacy file systems such as ext3 because it takes\n"\ " legacy file systems such as ext3 because it takes\n" \
" almost same time as 'prealloc' and it blocks aria2\n"\ " almost same time as 'prealloc' and it blocks aria2\n" \
" entirely until allocation finishes. 'falloc' may\n"\ " entirely until allocation finishes. 'falloc' may\n" \
" not be available if your system doesn't have\n"\ " not be available if your system doesn't have\n" \
" posix_fallocate() function.") " posix_fallocate() function.")
#define TEXT_NO_FILE_ALLOCATION_LIMIT \ #define TEXT_NO_FILE_ALLOCATION_LIMIT \
_(" --no-file-allocation-limit=SIZE No file allocation is made for files whose\n"\ _(" --no-file-allocation-limit=SIZE No file allocation is made for files whose\n" \
" size is smaller than SIZE.\n"\ " size is smaller than SIZE.\n" \
" You can append K or M(1K = 1024, 1M = 1024K).") " You can append K or M(1K = 1024, 1M = 1024K).")
# define TEXT_ENABLE_DIRECT_IO \ # define TEXT_ENABLE_DIRECT_IO \
_(" --enable-direct-io[=true|false] Enable directI/O, which lowers cpu usage while\n"\ _(" --enable-direct-io[=true|false] Enable directI/O, which lowers cpu usage while\n" \
" allocating files.\n"\ " allocating files.\n" \
" Turn off if you encounter any error") " Turn off if you encounter any error")
#define TEXT_ALLOW_OVERWRITE \ #define TEXT_ALLOW_OVERWRITE \
_(" --allow-overwrite=true|false If false is given, and a file already exists but\n"\ _(" --allow-overwrite=true|false If false is given, and a file already exists but\n" \
" the corresponding control file (filename.aria2)\n"\ " the corresponding control file (filename.aria2)\n" \
" doesn't exist, then aria2 will not re-download\n"\ " doesn't exist, then aria2 will not re-download\n" \
" the file. See also --auto-file-renaming option.") " the file. See also --auto-file-renaming option.")
#define TEXT_ALLOW_PIECE_LENGTH_CHANGE \ #define TEXT_ALLOW_PIECE_LENGTH_CHANGE \
_(" --allow-piece-length-change=true|false If false is given, aria2 aborts download\n"\ _(" --allow-piece-length-change=true|false If false is given, aria2 aborts download\n" \
" when a piece length is different from one in\n"\ " when a piece length is different from one in\n" \
" a control file. If true is given, you can proceed\n"\ " a control file. If true is given, you can proceed\n" \
" but some download progress will be lost.") " but some download progress will be lost.")
#define TEXT_FORCE_SEQUENTIAL \ #define TEXT_FORCE_SEQUENTIAL \
_(" -Z, --force-sequential[=true|false] Fetch URIs in the command-line sequentially\n"\ _(" -Z, --force-sequential[=true|false] Fetch URIs in the command-line sequentially\n" \
" and download each URI in a separate session, like\n"\ " and download each URI in a separate session, like\n" \
" the usual command-line download utilities.") " the usual command-line download utilities.")
#define TEXT_AUTO_FILE_RENAMING \ #define TEXT_AUTO_FILE_RENAMING \
_(" --auto-file-renaming[=true|false] Rename file name if the same file already\n"\ _(" --auto-file-renaming[=true|false] Rename file name if the same file already\n" \
" exists. This option works only in http(s)/ftp\n"\ " exists. This option works only in http(s)/ftp\n" \
" download.\n"\ " download.\n" \
" The new file name has a dot and a number(1..9999)\n"\ " The new file name has a dot and a number(1..9999)\n" \
" appended.") " appended.")
#define TEXT_PARAMETERIZED_URI \ #define TEXT_PARAMETERIZED_URI \
_(" -P, --parameterized-uri[=true|false] Enable parameterized URI support.\n"\ _(" -P, --parameterized-uri[=true|false] Enable parameterized URI support.\n" \
" You can specify set of parts:\n"\ " You can specify set of parts:\n" \
" http://{sv1,sv2,sv3}/foo.iso\n"\ " http://{sv1,sv2,sv3}/foo.iso\n" \
" Also you can specify numeric sequences with step\n"\ " Also you can specify numeric sequences with step\n" \
" counter:\n"\ " counter:\n" \
" http://host/image[000-100:2].img\n"\ " http://host/image[000-100:2].img\n" \
" A step counter can be omitted.\n"\ " A step counter can be omitted.\n" \
" If all URIs do not point to the same file, such\n"\ " If all URIs do not point to the same file, such\n" \
" as the second example above, -Z option is\n"\ " as the second example above, -Z option is\n" \
" required.") " required.")
#define TEXT_ENABLE_HTTP_KEEP_ALIVE \ #define TEXT_ENABLE_HTTP_KEEP_ALIVE \
_(" --enable-http-keep-alive[=true|false] Enable HTTP/1.1 persistent connection.") _(" --enable-http-keep-alive[=true|false] Enable HTTP/1.1 persistent connection.")
#define TEXT_ENABLE_HTTP_PIPELINING \ #define TEXT_ENABLE_HTTP_PIPELINING \
_(" --enable-http-pipelining[=true|false] Enable HTTP/1.1 pipelining.") _(" --enable-http-pipelining[=true|false] Enable HTTP/1.1 pipelining.")
#define TEXT_CHECK_INTEGRITY \ #define TEXT_CHECK_INTEGRITY \
_(" -V, --check-integrity[=true|false] Check file integrity by validating piece\n"\ _(" -V, --check-integrity[=true|false] Check file integrity by validating piece\n" \
" hashes. This option has effect only in BitTorrent\n"\ " hashes. This option has effect only in BitTorrent\n" \
" and Metalink downloads with chunk checksums.\n"\ " and Metalink downloads with chunk checksums.\n" \
" Use this option to re-download a damaged portion\n"\ " Use this option to re-download a damaged portion\n" \
" of a file. See also --bt-hash-check-seed option.") " of a file. See also --bt-hash-check-seed option.")
#define TEXT_BT_HASH_CHECK_SEED \ #define TEXT_BT_HASH_CHECK_SEED \
_(" --bt-hash-check-seed[=true|false] If true is given, after hash check using\n"\ _(" --bt-hash-check-seed[=true|false] If true is given, after hash check using\n" \
" --check-integrity option and file is complete,\n"\ " --check-integrity option and file is complete,\n" \
" continue to seed file. If you want to check file\n"\ " continue to seed file. If you want to check file\n" \
" and download it only when it is damaged or\n"\ " and download it only when it is damaged or\n" \
" incomplete, set this option to false.\n"\ " incomplete, set this option to false.\n" \
" This option has effect only on BitTorrent\n"\ " This option has effect only on BitTorrent\n" \
" download.") " download.")
#define TEXT_REALTIME_CHUNK_CHECKSUM \ #define TEXT_REALTIME_CHUNK_CHECKSUM \
_(" --realtime-chunk-checksum=true|false Validate chunk of data by calculating\n"\ _(" --realtime-chunk-checksum=true|false Validate chunk of data by calculating\n" \
" checksum while downloading a file if chunk\n"\ " checksum while downloading a file if chunk\n" \
" checksums are provided.") " checksums are provided.")
#define TEXT_CONTINUE \ #define TEXT_CONTINUE \
_(" -c, --continue Continue downloading a partially downloaded\n"\ _(" -c, --continue Continue downloading a partially downloaded\n" \
" file. Use this option to resume a download\n"\ " file. Use this option to resume a download\n" \
" started by a web browser or another program\n"\ " started by a web browser or another program\n" \
" which downloads files sequentially from the\n"\ " which downloads files sequentially from the\n" \
" beginning. Currently this option is only\n"\ " beginning. Currently this option is only\n" \
" applicable to http(s)/ftp downloads.") " applicable to http(s)/ftp downloads.")
#define TEXT_USER_AGENT \ #define TEXT_USER_AGENT \
_(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.") _(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
#define TEXT_NO_NETRC \ #define TEXT_NO_NETRC \
_(" -n, --no-netrc Disables netrc support.") _(" -n, --no-netrc Disables netrc support.")
#define TEXT_INPUT_FILE \ #define TEXT_INPUT_FILE \
_(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n"\ _(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n" \
" multiple URIs for a single entity: separate\n"\ " multiple URIs for a single entity: separate\n" \
" URIs on a single line using the TAB character.\n"\ " URIs on a single line using the TAB character.\n" \
" Reads input from stdin when '-' is specified.\n"\ " Reads input from stdin when '-' is specified.\n" \
" The additional out and dir options can be\n"\ " The additional out and dir options can be\n" \
" specified after each line of URIs. This optional\n"\ " specified after each line of URIs. This optional\n" \
" line must start with white space(s). See INPUT\n"\ " line must start with white space(s). See INPUT\n" \
" FILE section of man page for details.") " FILE section of man page for details.")
#define TEXT_MAX_CONCURRENT_DOWNLOADS \ #define TEXT_MAX_CONCURRENT_DOWNLOADS \
_(" -j, --max-concurrent-downloads=N Set maximum number of parallel downloads for\n"\ _(" -j, --max-concurrent-downloads=N Set maximum number of parallel downloads for\n" \
" every static (HTTP/FTP) URL, torrent and metalink.\n"\ " every static (HTTP/FTP) URL, torrent and metalink.\n" \
" See also -s and -C options.") " See also -s and -C options.")
#define TEXT_LOAD_COOKIES \ #define TEXT_LOAD_COOKIES \
_(" --load-cookies=FILE Load Cookies from FILE using the Firefox3 format\n"\ _(" --load-cookies=FILE Load Cookies from FILE using the Firefox3 format\n" \
" and Mozilla/Firefox(1.x/2.x)/Netscape format.") " and Mozilla/Firefox(1.x/2.x)/Netscape format.")
#define TEXT_SAVE_COOKIES \ #define TEXT_SAVE_COOKIES \
_(" --save-cookies=FILE Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/\n"\ _(" --save-cookies=FILE Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/\n" \
" Netscape format. If FILE already exists, it is\n"\ " Netscape format. If FILE already exists, it is\n" \
" overwritten. Session Cookies are also saved and\n"\ " overwritten. Session Cookies are also saved and\n" \
" their expiry values are treated as 0.") " their expiry values are treated as 0.")
#define TEXT_SHOW_FILES \ #define TEXT_SHOW_FILES \
_(" -S, --show-files Print file listing of .torrent or .metalink file\n"\ _(" -S, --show-files Print file listing of .torrent or .metalink file\n" \
" and exit. More detailed information will be listed\n"\ " and exit. More detailed information will be listed\n" \
" in case of torrent file.") " in case of torrent file.")
#define TEXT_SELECT_FILE \ #define TEXT_SELECT_FILE \
_(" --select-file=INDEX... Set file to download by specifying its index.\n"\ _(" --select-file=INDEX... Set file to download by specifying its index.\n" \
" You can find the file index using the\n"\ " You can find the file index using the\n" \
" --show-files option. Multiple indexes can be\n"\ " --show-files option. Multiple indexes can be\n" \
" specified by using ',', for example: \"3,6\".\n"\ " specified by using ',', for example: \"3,6\".\n" \
" You can also use '-' to specify a range: \"1-5\".\n"\ " You can also use '-' to specify a range: \"1-5\".\n" \
" ',' and '-' can be used together.\n"\ " ',' and '-' can be used together.\n" \
" When used with the -M option, index may vary\n"\ " When used with the -M option, index may vary\n" \
" depending on the query(see --metalink-* options).") " depending on the query(see --metalink-* options).")
#define TEXT_TORRENT_FILE \ #define TEXT_TORRENT_FILE \
_(" -T, --torrent-file=TORRENT_FILE The path to the .torrent file.") _(" -T, --torrent-file=TORRENT_FILE The path to the .torrent file.")
#define TEXT_FOLLOW_TORRENT \ #define TEXT_FOLLOW_TORRENT \
_(" --follow-torrent=true|false|mem If true or mem is specified, when a file\n"\ _(" --follow-torrent=true|false|mem If true or mem is specified, when a file\n" \
" whose suffix is .torrent or content type is\n"\ " whose suffix is .torrent or content type is\n" \
" application/x-bittorrent is downloaded, aria2\n"\ " application/x-bittorrent is downloaded, aria2\n" \
" parses it as a torrent file and downloads files\n"\ " parses it as a torrent file and downloads files\n" \
" mentioned in it.\n"\ " mentioned in it.\n" \
" If mem is specified, a torrent file is not\n"\ " If mem is specified, a torrent file is not\n" \
" written to the disk, but is just kept in memory.\n"\ " written to the disk, but is just kept in memory.\n" \
" If false is specified, the action mentioned above\n"\ " If false is specified, the action mentioned above\n" \
" is not taken.") " is not taken.")
#define TEXT_DIRECT_FILE_MAPPING \ #define TEXT_DIRECT_FILE_MAPPING \
_(" --direct-file-mapping=true|false Directly read from and write to each file\n"\ _(" --direct-file-mapping=true|false Directly read from and write to each file\n" \
" mentioned in .torrent file.") " mentioned in .torrent file.")
#define TEXT_LISTEN_PORT \ #define TEXT_LISTEN_PORT \
_(" --listen-port=PORT... Set TCP port number for BitTorrent downloads.\n"\ _(" --listen-port=PORT... Set TCP port number for BitTorrent downloads.\n" \
" Multiple ports can be specified by using ',',\n"\ " Multiple ports can be specified by using ',',\n" \
" for example: \"6881,6885\". You can also use '-'\n"\ " for example: \"6881,6885\". You can also use '-'\n" \
" to specify a range: \"6881-6999\". ',' and '-' can\n"\ " to specify a range: \"6881-6999\". ',' and '-' can\n" \
" be used together.") " be used together.")
#define TEXT_MAX_OVERALL_UPLOAD_LIMIT \ #define TEXT_MAX_OVERALL_UPLOAD_LIMIT \
_(" --max-overall-upload-limit=SPEED Set max overall upload speed in bytes/sec.\n"\ _(" --max-overall-upload-limit=SPEED Set max overall upload speed in bytes/sec.\n" \
" 0 means unrestricted.\n"\ " 0 means unrestricted.\n" \
" You can append K or M(1K = 1024, 1M = 1024K).\n"\ " You can append K or M(1K = 1024, 1M = 1024K).\n" \
" To limit the upload speed per torrent, use\n"\ " To limit the upload speed per torrent, use\n" \
" --max-upload-limit option.") " --max-upload-limit option.")
#define TEXT_MAX_UPLOAD_LIMIT \ #define TEXT_MAX_UPLOAD_LIMIT \
_(" -u, --max-upload-limit=SPEED Set max upload speed per each torrent in\n"\ _(" -u, --max-upload-limit=SPEED Set max upload speed per each torrent in\n" \
" bytes/sec. 0 means unrestricted.\n"\ " bytes/sec. 0 means unrestricted.\n" \
" You can append K or M(1K = 1024, 1M = 1024K).\n"\ " You can append K or M(1K = 1024, 1M = 1024K).\n" \
" To limit the overall upload speed, use\n"\ " To limit the overall upload speed, use\n" \
" --max-overall-upload-limit option.") " --max-overall-upload-limit option.")
#define TEXT_SEED_TIME \ #define TEXT_SEED_TIME \
_(" --seed-time=MINUTES Specify seeding time in minutes. Also see the\n"\ _(" --seed-time=MINUTES Specify seeding time in minutes. Also see the\n" \
" --seed-ratio option.") " --seed-ratio option.")
#define TEXT_SEED_RATIO \ #define TEXT_SEED_RATIO \
_(" --seed-ratio=RATIO Specify share ratio. Seed completed torrents\n"\ _(" --seed-ratio=RATIO Specify share ratio. Seed completed torrents\n" \
" until share ratio reaches RATIO.\n"\ " until share ratio reaches RATIO.\n" \
" You are strongly encouraged to specify equals or\n"\ " You are strongly encouraged to specify equals or\n" \
" more than 1.0 here. Specify 0.0 if you intend to\n"\ " more than 1.0 here. Specify 0.0 if you intend to\n" \
" do seeding regardless of share ratio.\n" \ " do seeding regardless of share ratio.\n" \
" If --seed-time option is specified along with\n"\ " If --seed-time option is specified along with\n" \
" this option, seeding ends when at least one of\n"\ " this option, seeding ends when at least one of\n" \
" the conditions is satisfied.") " the conditions is satisfied.")
#define TEXT_PEER_ID_PREFIX \ #define TEXT_PEER_ID_PREFIX \
_(" --peer-id-prefix=PEER_ID_PREFIX Specify the prefix of peer ID. The peer ID in\n"\ _(" --peer-id-prefix=PEER_ID_PREFIX Specify the prefix of peer ID. The peer ID in\n" \
" BitTorrent is 20 byte length. If more than 20\n"\ " BitTorrent is 20 byte length. If more than 20\n" \
" bytes are specified, only first 20 bytes are\n"\ " bytes are specified, only first 20 bytes are\n" \
" used. If less than 20 bytes are specified, random\n"\ " used. If less than 20 bytes are specified, random\n" \
" byte data are added to make its length 20 bytes.") " byte data are added to make its length 20 bytes.")
#define TEXT_ENABLE_PEER_EXCHANGE \ #define TEXT_ENABLE_PEER_EXCHANGE \
_(" --enable-peer-exchange[=true|false] Enable Peer Exchange extension.") _(" --enable-peer-exchange[=true|false] Enable Peer Exchange extension.")
#define TEXT_ENABLE_DHT \ #define TEXT_ENABLE_DHT \
_(" --enable-dht[=true|false] Enable DHT functionality.") _(" --enable-dht[=true|false] Enable DHT functionality.")
#define TEXT_DHT_LISTEN_PORT \ #define TEXT_DHT_LISTEN_PORT \
_(" --dht-listen-port=PORT... Set UDP listening port for DHT.\n"\ _(" --dht-listen-port=PORT... Set UDP listening port for DHT.\n" \
" Multiple ports can be specified by using ',',\n"\ " Multiple ports can be specified by using ',',\n" \
" for example: \"6881,6885\". You can also use '-'\n"\ " for example: \"6881,6885\". You can also use '-'\n" \
" to specify a range: \"6881-6999\". ',' and '-' can\n"\ " to specify a range: \"6881-6999\". ',' and '-' can\n" \
" be used together.") " be used together.")
#define TEXT_DHT_ENTRY_POINT \ #define TEXT_DHT_ENTRY_POINT \
_(" --dht-entry-point=HOST:PORT Set host and port as an entry point to DHT\n"\ _(" --dht-entry-point=HOST:PORT Set host and port as an entry point to DHT\n" \
" network.") " network.")
#define TEXT_DHT_FILE_PATH \ #define TEXT_DHT_FILE_PATH \
_(" --dht-file-path=PATH Change the DHT routing table file to PATH.") _(" --dht-file-path=PATH Change the DHT routing table file to PATH.")
#define TEXT_BT_MIN_CRYPTO_LEVEL \ #define TEXT_BT_MIN_CRYPTO_LEVEL \
_(" --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n"\ _(" --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n" \
" If several encryption methods are provided by a\n"\ " If several encryption methods are provided by a\n" \
" peer, aria2 chooses the lowest one which satisfies\n"\ " peer, aria2 chooses the lowest one which satisfies\n" \
" the given level.") " the given level.")
#define TEXT_BT_REQUIRE_CRYPTO \ #define TEXT_BT_REQUIRE_CRYPTO \
_(" --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"\ _(" --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n" \
" establish connection with legacy BitTorrent\n"\ " establish connection with legacy BitTorrent\n" \
" handshake. Thus aria2 always uses Obfuscation\n"\ " handshake. Thus aria2 always uses Obfuscation\n" \
" handshake.") " handshake.")
#define TEXT_BT_REQUEST_PEER_SPEED_LIMIT \ #define TEXT_BT_REQUEST_PEER_SPEED_LIMIT \
_(" --bt-request-peer-speed-limit=SPEED If the whole download speed of every\n"\ _(" --bt-request-peer-speed-limit=SPEED If the whole download speed of every\n" \
" torrent is lower than SPEED, aria2 temporarily\n"\ " torrent is lower than SPEED, aria2 temporarily\n" \
" increases the number of peers to try for more\n"\ " increases the number of peers to try for more\n" \
" download speed. Configuring this option with your\n"\ " download speed. Configuring this option with your\n" \
" preferred download speed can increase your\n"\ " preferred download speed can increase your\n" \
" download speed in some cases.\n"\ " download speed in some cases.\n" \
" You can append K or M(1K = 1024, 1M = 1024K).") " You can append K or M(1K = 1024, 1M = 1024K).")
#define TEXT_BT_MAX_OPEN_FILES \ #define TEXT_BT_MAX_OPEN_FILES \
_(" --bt-max-open-files=NUM Specify maximum number of files to open in each\n"\ _(" --bt-max-open-files=NUM Specify maximum number of files to open in each\n" \
" BitTorrent download.") " BitTorrent download.")
#define TEXT_BT_SEED_UNVERIFIED \ #define TEXT_BT_SEED_UNVERIFIED \
_(" --bt-seed-unverified[=true|false] Seed previously downloaded files without\n"\ _(" --bt-seed-unverified[=true|false] Seed previously downloaded files without\n" \
" verifying piece hashes.") " verifying piece hashes.")
#define TEXT_BT_MAX_PEERS \ #define TEXT_BT_MAX_PEERS \
_(" --bt-max-peers=NUM Specify the maximum number of peers per torrent.\n"\ _(" --bt-max-peers=NUM Specify the maximum number of peers per torrent.\n" \
" 0 means unlimited.\n"\ " 0 means unlimited.\n" \
" See also --bt-request-peer-speed-limit option.") " See also --bt-request-peer-speed-limit option.")
#define TEXT_METALINK_FILE \ #define TEXT_METALINK_FILE \
_(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file. Reads\n"\ _(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file. Reads\n" \
" input from stdin when '-' is specified.") " input from stdin when '-' is specified.")
#define TEXT_METALINK_SERVERS \ #define TEXT_METALINK_SERVERS \
_(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\ _(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n" \
" simultaneously. Some Metalinks regulate the\n"\ " simultaneously. Some Metalinks regulate the\n" \
" number of servers to connect. aria2 strictly\n"\ " number of servers to connect. aria2 strictly\n" \
" respects them. This means that if Metalink defines\n"\ " respects them. This means that if Metalink defines\n" \
" the maxconnections attribute lower than\n"\ " the maxconnections attribute lower than\n" \
" NUM_SERVERS, then aria2 uses the value of\n"\ " NUM_SERVERS, then aria2 uses the value of\n" \
" maxconnections attribute instead of NUM_SERVERS.\n"\ " maxconnections attribute instead of NUM_SERVERS.\n" \
" See also -s and -j options.") " See also -s and -j options.")
#define TEXT_METALINK_VERSION \ #define TEXT_METALINK_VERSION \
_(" --metalink-version=VERSION The version of the file to download.") _(" --metalink-version=VERSION The version of the file to download.")
#define TEXT_METALINK_LANGUAGE \ #define TEXT_METALINK_LANGUAGE \
_(" --metalink-language=LANGUAGE The language of the file to download.") _(" --metalink-language=LANGUAGE The language of the file to download.")
#define TEXT_METALINK_OS \ #define TEXT_METALINK_OS \
_(" --metalink-os=OS The operating system of the file to download.") _(" --metalink-os=OS The operating system of the file to download.")
#define TEXT_METALINK_LOCATION \ #define TEXT_METALINK_LOCATION \
_(" --metalink-location=LOCATION[,...] The location of the preferred server.\n"\ _(" --metalink-location=LOCATION[,...] The location of the preferred server.\n" \
" A comma-delimited list of locations is\n"\ " A comma-delimited list of locations is\n" \
" acceptable.") " acceptable.")
#define TEXT_METALINK_PREFERRED_PROTOCOL \ #define TEXT_METALINK_PREFERRED_PROTOCOL \
_(" --metalink-preferred-protocol=PROTO Specify preferred protocol. Specify 'none'\n"\ _(" --metalink-preferred-protocol=PROTO Specify preferred protocol. Specify 'none'\n" \
" if you don't have any preferred protocol.") " if you don't have any preferred protocol.")
#define TEXT_FOLLOW_METALINK \ #define TEXT_FOLLOW_METALINK \
_(" --follow-metalink=true|false|mem If true or mem is specified, when a file\n"\ _(" --follow-metalink=true|false|mem If true or mem is specified, when a file\n" \
" whose suffix is .metalink or content type of\n"\ " whose suffix is .metalink or content type of\n" \
" application/metalink+xml is downloaded, aria2\n"\ " application/metalink+xml is downloaded, aria2\n" \
" parses it as a metalink file and downloads files\n"\ " parses it as a metalink file and downloads files\n" \
" mentioned in it.\n"\ " mentioned in it.\n" \
" If mem is specified, a metalink file is not\n"\ " If mem is specified, a metalink file is not\n" \
" written to the disk, but is just kept in memory.\n"\ " written to the disk, but is just kept in memory.\n" \
" If false is specified, the action mentioned above\n"\ " If false is specified, the action mentioned above\n" \
" is not taken.") " is not taken.")
#define TEXT_METALINK_ENABLE_UNIQUE_PROTOCOL \ #define TEXT_METALINK_ENABLE_UNIQUE_PROTOCOL \
_(" --metalink-enable-unique-protocol=true|false If true is given and several\n"\ _(" --metalink-enable-unique-protocol=true|false If true is given and several\n" \
" protocols are available for a mirror in a metalink\n"\ " protocols are available for a mirror in a metalink\n" \
" file, aria2 uses one of them.\n"\ " file, aria2 uses one of them.\n" \
" Use --metalink-preferred-protocol option to\n"\ " Use --metalink-preferred-protocol option to\n" \
" specify the preference of protocol.") " specify the preference of protocol.")
#define TEXT_VERSION \ #define TEXT_VERSION \
_(" -v, --version Print the version number and exit.") _(" -v, --version Print the version number and exit.")
#define TEXT_HELP \ #define TEXT_HELP \
_(" -h, --help[=TAG|KEYWORD] Print usage and exit.\n"\ _(" -h, --help[=TAG|KEYWORD] Print usage and exit.\n" \
" The help messages are classified with tags. A tag\n"\ " The help messages are classified with tags. A tag\n" \
" starts with \"#\". For example, type \"--help=#http\"\n"\ " starts with \"#\". For example, type \"--help=#http\"\n" \
" to get the usage for the options tagged with\n"\ " to get the usage for the options tagged with\n" \
" \"#http\". If non-tag word is given, print the usage\n"\ " \"#http\". If non-tag word is given, print the usage\n" \
" for the options whose name includes that word.") " for the options whose name includes that word.")
#define TEXT_NO_CONF \ #define TEXT_NO_CONF \
_(" --no-conf Disable loading aria2.conf file.") _(" --no-conf Disable loading aria2.conf file.")
#define TEXT_CONF_PATH \ #define TEXT_CONF_PATH \
_(" --conf-path=PATH Change the configuration file path to PATH.") _(" --conf-path=PATH Change the configuration file path to PATH.")
#define TEXT_STOP \ #define TEXT_STOP \
_(" --stop=SEC Stop application after SEC seconds has passed.\n" \ _(" --stop=SEC Stop application after SEC seconds has passed.\n" \
" If 0 is given, this feature is disabled.") " If 0 is given, this feature is disabled.")
#define TEXT_HEADER \ #define TEXT_HEADER \
_(" --header=HEADER Append HEADER to HTTP request header. You can use\n"\ _(" --header=HEADER Append HEADER to HTTP request header. You can use\n" \
" this option repeatedly to specify more than one\n"\ " this option repeatedly to specify more than one\n" \
" header:\n"\ " header:\n" \
" aria2c --header=\"X-A: b78\" --header=\"X-B: 9J1\"\n"\ " aria2c --header=\"X-A: b78\" --header=\"X-B: 9J1\"\n" \
" http://host/file") " http://host/file")
#define TEXT_QUIET \ #define TEXT_QUIET \
_(" -q, --quiet[=true|false] Make aria2 quiet(no console output).") _(" -q, --quiet[=true|false] Make aria2 quiet(no console output).")
#define TEXT_ASYNC_DNS \ #define TEXT_ASYNC_DNS \
_(" --async-dns[=true|false] Enable asynchronous DNS.") _(" --async-dns[=true|false] Enable asynchronous DNS.")
#define TEXT_FTP_REUSE_CONNECTION \ #define TEXT_FTP_REUSE_CONNECTION \
_(" --ftp-reuse-connection[=true|false] Reuse connection in FTP.") _(" --ftp-reuse-connection[=true|false] Reuse connection in FTP.")
#define TEXT_SUMMARY_INTERVAL \ #define TEXT_SUMMARY_INTERVAL \
_(" --summary-interval=SEC Set interval to output download progress summary.\n"\ _(" --summary-interval=SEC Set interval to output download progress summary.\n" \
" Setting 0 suppresses the output.") " Setting 0 suppresses the output.")
#define TEXT_LOG_LEVEL \ #define TEXT_LOG_LEVEL \
_(" --log-level=LEVEL Set log level to output.") _(" --log-level=LEVEL Set log level to output.")
#define TEXT_REMOTE_TIME \ #define TEXT_REMOTE_TIME \
_(" -R, --remote-time[=true|false] Retrieve timestamp of the remote file from the\n"\ _(" -R, --remote-time[=true|false] Retrieve timestamp of the remote file from the\n" \
" remote HTTP/FTP server and if it is available,\n"\ " remote HTTP/FTP server and if it is available,\n" \
" apply it to the local file.") " apply it to the local file.")
#define TEXT_CONNECT_TIMEOUT \ #define TEXT_CONNECT_TIMEOUT \
_(" --connect-timeout=SEC Set the connect timeout in seconds to establish\n"\ _(" --connect-timeout=SEC Set the connect timeout in seconds to establish\n" \
" connection to HTTP/FTP/proxy server. After the\n"\ " connection to HTTP/FTP/proxy server. After the\n" \
" connection is established, this option makes no\n"\ " connection is established, this option makes no\n" \
" effect and --timeout option is used instead.") " effect and --timeout option is used instead.")
#define TEXT_MAX_FILE_NOT_FOUND \ #define TEXT_MAX_FILE_NOT_FOUND \
_(" --max-file-not-found=NUM If aria2 receives `file not found' status from the\n"\ _(" --max-file-not-found=NUM If aria2 receives `file not found' status from the\n" \
" remote HTTP/FTP servers NUM times without getting\n"\ " remote HTTP/FTP servers NUM times without getting\n" \
" a single byte, then force the download to fail.\n"\ " a single byte, then force the download to fail.\n" \
" Specify 0 to disable this option.\n"\ " Specify 0 to disable this option.\n" \
" This options is effective only when using\n"\ " This options is effective only when using\n" \
" HTTP/FTP servers.") " HTTP/FTP servers.")
#define TEXT_URI_SELECTOR \ #define TEXT_URI_SELECTOR \
_(" --uri-selector=SELECTOR Specify URI selection algorithm.\n"\ _(" --uri-selector=SELECTOR Specify URI selection algorithm.\n" \
" If 'inorder' is given, URI is tried in the order\n"\ " If 'inorder' is given, URI is tried in the order\n" \
" appeared in the URI list.\n"\ " appeared in the URI list.\n" \
" If 'feedback' is given, aria2 uses download speed\n"\ " If 'feedback' is given, aria2 uses download speed\n" \
" observed in the previous downloads and choose\n"\ " observed in the previous downloads and choose\n" \
" fastest server in the URI list. This also\n"\ " fastest server in the URI list. This also\n" \
" effectively skips dead mirrors. The observed\n"\ " effectively skips dead mirrors. The observed\n" \
" download speed is a part of performance profile\n"\ " download speed is a part of performance profile\n" \
" of servers mentioned in --server-stat-of and\n"\ " of servers mentioned in --server-stat-of and\n" \
" --server-stat-if options.\n"\ " --server-stat-if options.\n" \
" If 'adaptive' is given, selects one of the best\n"\ " If 'adaptive' is given, selects one of the best\n" \
" mirrors for the first and reserved connections.\n"\ " mirrors for the first and reserved connections.\n" \
" For supplementary ones, it returns mirrors which\n" \ " For supplementary ones, it returns mirrors which\n" \
" has not been tested yet, and if each of them has\n"\ " has not been tested yet, and if each of them has\n" \
" already been tested, returns mirrors which has to\n"\ " already been tested, returns mirrors which has to\n" \
" be tested again. Otherwise, it doesn't select\n"\ " be tested again. Otherwise, it doesn't select\n" \
" anymore mirrors. Like 'feedback', it uses a\n"\ " anymore mirrors. Like 'feedback', it uses a\n" \
" performance profile of servers.") " performance profile of servers.")
#define TEXT_SERVER_STAT_OF \ #define TEXT_SERVER_STAT_OF \
_(" --server-stat-of=FILE Specify the filename to which performance profile\n"\ _(" --server-stat-of=FILE Specify the filename to which performance profile\n" \
" of the servers is saved. You can load saved data\n"\ " of the servers is saved. You can load saved data\n" \
" using --server-stat-if option.") " using --server-stat-if option.")
#define TEXT_SERVER_STAT_IF \ #define TEXT_SERVER_STAT_IF \
_(" --server-stat-if=FILE Specify the filename to load performance profile\n"\ _(" --server-stat-if=FILE Specify the filename to load performance profile\n" \
" of the servers. The loaded data will be used in\n"\ " of the servers. The loaded data will be used in\n" \
" some URI selector such as 'feedback'.\n"\ " some URI selector such as 'feedback'.\n" \
" See also --uri-selector option") " See also --uri-selector option")
#define TEXT_SERVER_STAT_TIMEOUT \ #define TEXT_SERVER_STAT_TIMEOUT \
_(" --server-stat-timeout=SEC Specifies timeout in seconds to invalidate\n"\ _(" --server-stat-timeout=SEC Specifies timeout in seconds to invalidate\n" \
" performance profile of the servers since the last\n"\ " performance profile of the servers since the last\n" \
" contact to them.") " contact to them.")
#define TEXT_AUTO_SAVE_INTERVAL \ #define TEXT_AUTO_SAVE_INTERVAL \
_(" --auto-save-interval=SEC Save a control file(*.aria2) every SEC seconds.\n"\ _(" --auto-save-interval=SEC Save a control file(*.aria2) every SEC seconds.\n" \
" If 0 is given, a control file is not saved during\n"\ " If 0 is given, a control file is not saved during\n" \
" download. aria2 saves a control file when it stops\n"\ " download. aria2 saves a control file when it stops\n" \
" regardless of the value.") " regardless of the value.")
#define TEXT_CERTIFICATE \ #define TEXT_CERTIFICATE \
_(" --certificate=FILE Use the client certificate in FILE.\n"\ _(" --certificate=FILE Use the client certificate in FILE.\n" \
" The certificate must be in PEM format.\n"\ " The certificate must be in PEM format.\n" \
" You may use --private-key option to specify the\n"\ " You may use --private-key option to specify the\n" \
" private key.") " private key.")
#define TEXT_PRIVATE_KEY \ #define TEXT_PRIVATE_KEY \
_(" --private-key=FILE Use the private key in FILE.\n"\ _(" --private-key=FILE Use the private key in FILE.\n" \
" The private key must be decrypted and in PEM\n"\ " The private key must be decrypted and in PEM\n" \
" format. See also --certificate option.") " format. See also --certificate option.")
#define TEXT_CA_CERTIFICATE \ #define TEXT_CA_CERTIFICATE \
_(" --ca-certificate=FILE Use the certificate authorities in FILE to verify\n"\ _(" --ca-certificate=FILE Use the certificate authorities in FILE to verify\n" \
" the peers. The certificate file must be in PEM\n"\ " the peers. The certificate file must be in PEM\n" \
" format and can contain multiple CA certificates.\n"\ " format and can contain multiple CA certificates.\n" \
" Use --check-certificate option to enable\n"\ " Use --check-certificate option to enable\n" \
" verification.") " verification.")
#define TEXT_CHECK_CERTIFICATE \ #define TEXT_CHECK_CERTIFICATE \
_(" --check-certificate[=true|false] Verify the peer using certificates specified\n"\ _(" --check-certificate[=true|false] Verify the peer using certificates specified\n" \
" in --ca-certificate option.") " in --ca-certificate option.")
#define TEXT_NO_PROXY \ #define TEXT_NO_PROXY \
_(" --no-proxy=DOMAINS Specify comma separated hostnames or domains where\n"\ _(" --no-proxy=DOMAINS Specify comma separated hostnames or domains where\n" \
" proxy should not be used.") " proxy should not be used.")
#define TEXT_USE_HEAD \ #define TEXT_USE_HEAD \
_(" --use-head[=true|false] Use HEAD method for the first request to the HTTP\n"\ _(" --use-head[=true|false] Use HEAD method for the first request to the HTTP\n" \
" server.") " server.")
#define TEXT_EVENT_POLL \ #define TEXT_EVENT_POLL \
_(" --event-poll=POLL Specify the method for polling events.") _(" --event-poll=POLL Specify the method for polling events.")
#define TEXT_XML_RPC_LISTEN_PORT \ #define TEXT_XML_RPC_LISTEN_PORT \
_(" --xml-rpc-listen-port=PORT Specify a port number for XML-RPC server to listen\n"\ _(" --xml-rpc-listen-port=PORT Specify a port number for XML-RPC server to listen\n" \
" to.") " to.")
#define TEXT_ENABLE_XML_RPC \ #define TEXT_ENABLE_XML_RPC \
_(" --enable-xml-rpc[=true|false] Enable XML-RPC server.\n"\ _(" --enable-xml-rpc[=true|false] Enable XML-RPC server.\n" \
" It is strongly recommended to set username and\n"\ " It is strongly recommended to set username and\n" \
" password using --xml-rpc-user and --xml-rpc-passwd\n"\ " password using --xml-rpc-user and --xml-rpc-passwd\n" \
" option. See also --xml-rpc-listen-port option.") " option. See also --xml-rpc-listen-port option.")
#define TEXT_XML_RPC_MAX_REQUEST_SIZE \ #define TEXT_XML_RPC_MAX_REQUEST_SIZE \
_(" --xml-rpc-max-request-size=SIZE Set max size of XML-RPC request. If aria2\n"\ _(" --xml-rpc-max-request-size=SIZE Set max size of XML-RPC request. If aria2\n" \
" detects the request is more than SIZE bytes, it\n"\ " detects the request is more than SIZE bytes, it\n" \
" drops connection.") " drops connection.")
#define TEXT_XML_RPC_USER \ #define TEXT_XML_RPC_USER \
_(" --xml-rpc-user=USER Set XML-RPC user.") _(" --xml-rpc-user=USER Set XML-RPC user.")
#define TEXT_XML_RPC_PASSWD \ #define TEXT_XML_RPC_PASSWD \
_(" --xml-rpc-passwd=PASSWD Set XML-RPC password.") _(" --xml-rpc-passwd=PASSWD Set XML-RPC password.")
#define TEXT_BT_EXTERNAL_IP \ #define TEXT_BT_EXTERNAL_IP \
_(" --bt-external-ip=IPADDRESS Specify the external IP address to report to a\n"\ _(" --bt-external-ip=IPADDRESS Specify the external IP address to report to a\n" \
" BitTorrent tracker. Although this function is\n"\ " BitTorrent tracker. Although this function is\n" \
" named 'external', it can accept any kind of IP\n"\ " named 'external', it can accept any kind of IP\n" \
" addresses.") " addresses.")
#define TEXT_HTTP_AUTH_CHALLENGE \ #define TEXT_HTTP_AUTH_CHALLENGE \
_(" --http-auth-challenge[=true|false] Send HTTP authorization header only when it\n"\ _(" --http-auth-challenge[=true|false] Send HTTP authorization header only when it\n" \
" is requested by the server. If false is set, then\n"\ " is requested by the server. If false is set, then\n" \
" authorization header is always sent to the server.\n"\ " authorization header is always sent to the server.\n" \
" There is an exception: if username and password\n"\ " There is an exception: if username and password\n" \
" are embedded in URI, authorization header is\n"\ " are embedded in URI, authorization header is\n" \
" always sent to the server regardless of this\n"\ " always sent to the server regardless of this\n" \
" option.") " option.")
#define TEXT_INDEX_OUT \ #define TEXT_INDEX_OUT \
_(" -O, --index-out=INDEX=PATH Set file path for file with index=INDEX. You can\n"\ _(" -O, --index-out=INDEX=PATH Set file path for file with index=INDEX. You can\n" \
" find the file index using the --show-files option.\n"\ " find the file index using the --show-files option.\n" \
" PATH is a relative path to the path specified in\n"\ " PATH is a relative path to the path specified in\n" \
" --dir option. You can use this option multiple\n"\ " --dir option. You can use this option multiple\n" \
" times.") " times.")
#define TEXT_DRY_RUN \ #define TEXT_DRY_RUN \
_(" --dry-run[=true|false] If true is given, aria2 just checks whether the\n"\ _(" --dry-run[=true|false] If true is given, aria2 just checks whether the\n" \
" remote file is available and doesn't download\n"\ " remote file is available and doesn't download\n" \
" data. This option has effect on HTTP/FTP download.\n"\ " data. This option has effect on HTTP/FTP download.\n" \
" BitTorrent downloads are canceled if true is\n"\ " BitTorrent downloads are canceled if true is\n" \
" specified.") " specified.")
#define TEXT_BT_TRACKER_INTERVAL \ #define TEXT_BT_TRACKER_INTERVAL \
_(" --bt-tracker-interval=SEC Set the interval in seconds between tracker\n"\ _(" --bt-tracker-interval=SEC Set the interval in seconds between tracker\n" \
" requests. This completely overrides interval value\n"\ " requests. This completely overrides interval value\n" \
" and aria2 just uses this value and ignores the\n"\ " and aria2 just uses this value and ignores the\n" \
" min interval and interval value in the response of\n"\ " min interval and interval value in the response of\n" \
" tracker. If 0 is set, aria2 determines interval\n"\ " tracker. If 0 is set, aria2 determines interval\n" \
" based on the response of tracker and the download\n"\ " based on the response of tracker and the download\n" \
" progress.") " progress.")
#define TEXT_ON_DOWNLOAD_COMPLETE \ #define TEXT_ON_DOWNLOAD_COMPLETE \
_(" --on-download-complete=COMMAND Set the command to be executed when download\n"\ _(" --on-download-complete=COMMAND Set the command to be executed when download\n" \
" completes.\n"\ " completes.\n" \
" See --on-download-start option for the\n"\ " See --on-download-start option for the\n" \
" requirement of COMMAND.\n"\ " requirement of COMMAND.\n" \
" See also --on-download-stop option.") " See also --on-download-stop option.")
#define TEXT_ON_DOWNLOAD_START \ #define TEXT_ON_DOWNLOAD_START \
_(" --on-download-start=COMMAND Set the command to be executed when download\n"\ _(" --on-download-start=COMMAND Set the command to be executed when download\n" \
" starts up. COMMAND must take just one argument and\n"\ " starts up. COMMAND must take just one argument and\n" \
" GID is passed to COMMAND as a first argument.") " GID is passed to COMMAND as a first argument.")
#define TEXT_ON_DOWNLOAD_ERROR \ #define TEXT_ON_DOWNLOAD_ERROR \
_(" --on-download-error=COMMAND Set the command to be executed when download\n"\ _(" --on-download-error=COMMAND Set the command to be executed when download\n" \
" aborts due to error.\n"\ " aborts due to error.\n" \
" See --on-download-start option for the\n"\ " See --on-download-start option for the\n" \
" requirement of COMMAND.\n"\ " requirement of COMMAND.\n" \
" See also --on-download-stop option.") " See also --on-download-stop option.")
#define TEXT_ON_DOWNLOAD_STOP \ #define TEXT_ON_DOWNLOAD_STOP \
_(" --on-download-stop=COMMAND Set the command to be executed when download\n"\ _(" --on-download-stop=COMMAND Set the command to be executed when download\n" \
" stops. You can override the command to be executed\n"\ " stops. You can override the command to be executed\n" \
" for particular download result using\n"\ " for particular download result using\n" \
" --on-download-complete and --on-download-error. If\n"\ " --on-download-complete and --on-download-error. If\n" \
" they are specified, command specified in this\n"\ " they are specified, command specified in this\n" \
" option is not executed.\n"\ " option is not executed.\n" \
" See --on-download-start option for the\n"\ " See --on-download-start option for the\n" \
" requirement of COMMAND.") " requirement of COMMAND.")
#define TEXT_BT_STOP_TIMEOUT \ #define TEXT_BT_STOP_TIMEOUT \
_(" --bt-stop-timeout=SEC Stop BitTorrent download if download speed is 0 in\n"\ _(" --bt-stop-timeout=SEC Stop BitTorrent download if download speed is 0 in\n" \
" consecutive SEC seconds. If 0 is given, this\n"\ " consecutive SEC seconds. If 0 is given, this\n" \
" feature is disabled.") " feature is disabled.")
#define TEXT_XML_RPC_LISTEN_ALL \ #define TEXT_XML_RPC_LISTEN_ALL \
_(" --xml-rpc-listen-all[=true|false] Listen incoming XML-RPC requests on all\n"\ _(" --xml-rpc-listen-all[=true|false] Listen incoming XML-RPC requests on all\n" \
" network interfaces. If false is given, listen only\n"\ " network interfaces. If false is given, listen only\n" \
" on local loopback interface.") " on local loopback interface.")
#define TEXT_BT_PRIORITIZE_PIECE \ #define TEXT_BT_PRIORITIZE_PIECE \
_(" --bt-prioritize-piece=head[=SIZE],tail[=SIZE] Try to download first and last\n"\ _(" --bt-prioritize-piece=head[=SIZE],tail[=SIZE] Try to download first and last\n" \
" pieces of each file first. This is useful for\n"\ " pieces of each file first. This is useful for\n" \
" previewing files. The argument can contain 2\n"\ " previewing files. The argument can contain 2\n" \
" keywords:head and tail. To include both keywords,\n"\ " keywords:head and tail. To include both keywords,\n" \
" they must be separated by comma. These keywords\n"\ " they must be separated by comma. These keywords\n" \
" can take one parameter, SIZE. For example, if\n"\ " can take one parameter, SIZE. For example, if\n" \
" head=SIZE is specified, pieces in the range of\n"\ " head=SIZE is specified, pieces in the range of\n" \
" first SIZE bytes of each file get higher priority.\n"\ " first SIZE bytes of each file get higher priority.\n" \
" tail=SIZE means the range of last SIZE bytes of\n"\ " tail=SIZE means the range of last SIZE bytes of\n" \
" each file. SIZE can include K or M(1K = 1024, 1M =\n"\ " each file. SIZE can include K or M(1K = 1024, 1M =\n" \
" 1024K). If SIZE is omitted, SIZE=1M is used.") " 1024K). If SIZE is omitted, SIZE=1M is used.")
#define TEXT_INTERFACE \ #define TEXT_INTERFACE \
_(" --interface=INTERFACE Bind sockets to given interface. You can specify\n"\ _(" --interface=INTERFACE Bind sockets to given interface. You can specify\n" \
" interface name, IP address and hostname.") " interface name, IP address and hostname.")
#define TEXT_DISABLE_IPV6 \ #define TEXT_DISABLE_IPV6 \
_(" --disable-ipv6[=true|false] Disable IPv6.") _(" --disable-ipv6[=true|false] Disable IPv6.")
#define TEXT_BT_SAVE_METADATA \ #define TEXT_BT_SAVE_METADATA \
_(" --bt-save-metadata[=true|false] Save metadata as .torrent file. This option has\n" \ _(" --bt-save-metadata[=true|false] Save metadata as .torrent file. This option has\n" \
" effect only when BitTorrent Magnet URI is used.\n" \ " effect only when BitTorrent Magnet URI is used.\n" \
" The filename is hex encoded info hash with suffix\n" \ " The filename is hex encoded info hash with suffix\n" \
" .torrent. The directory to be saved is the same\n" \ " .torrent. The directory to be saved is the same\n" \

View File

@ -784,7 +784,7 @@ void usleep(long microseconds) {
if (msec) if (msec)
Sleep(msec); Sleep(msec);
#else #else
#error no usleep function is available (nanosleep?) #error no usleep function is available (nanosleep?)
#endif #endif
} }