diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-11-27 15:16:12 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-11-27 15:16:12 +0000 |
| commit | a022a1826bb573028f264bc6edbc564c0d488bbc (patch) | |
| tree | 2c85e0afc3a75b7837cf9e9f170a85342b65fb1e /src | |
| parent | 49989a16f763ba70523f1929a436833817bab008 (diff) | |
2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated usage
* src/version_usage.cc
Diffstat (limited to 'src')
| -rw-r--r-- | src/version_usage.cc | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/version_usage.cc b/src/version_usage.cc index 3390e815..4a30a268 100644 --- a/src/version_usage.cc +++ b/src/version_usage.cc @@ -38,6 +38,8 @@ # include "messageDigest.h" #endif // ENABLE_MESSAGE_DIGEST +#define DEFAULT_MSG _(" Default: ") + void showVersion() { cout << PACKAGE << _(" version ") << PACKAGE_VERSION << "\n" << "Copyright (C) 2006, 2007 Tatsuhiro Tsujikawa" << "\n" @@ -243,8 +245,8 @@ void showUsage() { " If mem is specified, a metalink file is not\n" " written to the disk, but is just kept in memory.\n" " If false is specified, the action mentioned above\n" - " is not taken.\n" - " Default: true") << endl; + " is not taken.") << "\n" + << DEFAULT_MSG << "true" << "\n"; cout << _(" --direct-file-mapping=true|false Directly read from and write to each file\n" " mentioned in .torrent file.\n" " Default: true") << endl; @@ -252,8 +254,8 @@ void showUsage() { " Multiple ports can be specified by using ',',\n" " for example: \"6881,6885\". You can also use '-'\n" " to specify a range: \"6881-6999\". ',' and '-' can\n" - " be used together.\n" - " Default: 6881-6999") << endl; + " be used together.") << "\n" + << DEFAULT_MSG << "6881-6999" << "\n"; cout << _(" --max-upload-limit=SPEED Set max upload speed in bytes per sec.\n" " 0 means unrestricted.\n" " You can append K or M(1K = 1024, 1M = 1024K).\n" @@ -266,8 +268,8 @@ void showUsage() { " seeding regardless of share ratio.\n" " If --seed-time option is specified along with\n" " this option, seeding ends when at least one of\n" - " the conditions is satisfied.\n" - " Default: 1.0") << endl; + " the conditions is satisfied.") << "\n" + << DEFAULT_MSG << "1.0" << "\n"; cout << _(" --peer-id-prefix=PEERI_ID_PREFIX Specify the prefix of peer ID. The peer ID in\n" " BitTorrent is 20 byte length. If more than 20\n" " bytes are specified, only first 20\n" @@ -295,8 +297,8 @@ void showUsage() { " If mem is specified, a metalink file is not\n" " written to the disk, but is just kept in memory.\n" " If false is specified, the action mentioned above\n" - " is not taken.\n" - " Default: true") << endl; + " is not taken.") << "\n" + << DEFAULT_MSG << "true" << "\n"; #endif // ENABLE_METALINK cout << _(" -v, --version Print the version number and exit.") << endl; cout << _(" -h, --help Print this message and exit.") << endl; @@ -309,7 +311,7 @@ void showUsage() { " while the data from http/ftp are uploaded to the torrent swarm. Note that\n" " only single file torrent can be integrated with http/ftp.") << endl; cout << endl; - cout << _("Refer to man page for some examples.") << endl; + cout << _("Refer to man page for more information.") << endl; cout << endl; printf(_("Report bugs to %s"), "<tujikawa at users dot sourceforge dot net>"); cout << endl; |
