From bf83dc7ed7811f09415b4211ee9f27608eb7718a Mon Sep 17 00:00:00 2001 From: P2P-Next Date: Tue, 10 Aug 2010 10:27:47 +0300 Subject: [PATCH] instrumentation/hrktorrent: add short options in printusage() function --- instrumentation/hrktorrent/main.cpp | 32 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/instrumentation/hrktorrent/main.cpp b/instrumentation/hrktorrent/main.cpp index b59f692..9546d76 100644 --- a/instrumentation/hrktorrent/main.cpp +++ b/instrumentation/hrktorrent/main.cpp @@ -14,22 +14,22 @@ printusage(const char *argv0) std::cout << "usage: " << APPNAME << " [options] torrent-file\n"; std::cout << "NOTE: options provided by the commandline override configuration file entries!\n\n"; - std::cout << "\t--minport \t- start port range (default: 6881)\n"; - std::cout << "\t--maxport \t- end port range (default: 6999)\n"; - - std::cout << "\t--maxdown \t- download speed limit (in kb/s) (default: unlimited)\n"; - std::cout << "\t--maxup \t\t- upload speed limit (in kb/s) (default: unlimited)\n"; - - std::cout << "\t--limitlocal\t\t-limit local network (default: off)\n"; - std::cout << "\t--nodht\t\t\t- disable dht (default: on)\n"; - std::cout << "\t--noupnp\t\t\t- disable upnp (default: on)\n"; - std::cout << "\t--noseed\t\t- disable seeding (default: on)\n"; - std::cout << "\t--forcereannounce\t- reannounce every X minutes (default: 2)\n"; - std::cout << "\t--outputdir\t\t- set the target directory (default: .)\n"; - std::cout << "\t--ipfilter\t\t- enable ip filtering (default: off)\n"; - std::cout << "\t--verbose\t\t- print verbose messages (default: off)\n"; - std::cout << "\t--version\t\t- print version\n"; - std::cout << "\t--help\t\t\t- print this help screen\n\n"; + std::cout << "\t-p, --minport \t\tstart port range (default: 6881)\n"; + std::cout << "\t-P, --maxport \t\tend port range (default: 6999)\n"; + + std::cout << "\t-d, --maxdown \t\tdownload speed limit (in kb/s) (default: unlimited)\n"; + std::cout << "\t-u, --maxup \t\tupload speed limit (in kb/s) (default: unlimited)\n"; + + std::cout << "\t-l, --limitlocal\t\tlimit local network (default: off)\n"; + std::cout << "\t-t, --nodht\t\t\tdisable dht (default: on)\n"; + std::cout << "\t-n, --noupnp\t\t\tdisable upnp (default: on)\n"; + std::cout << "\t-s, --noseed\t\t\tdisable seeding (default: on)\n"; + std::cout << "\t-f, --forcereannounce