instrumentation/hrktorrent: add short options in printusage() function
authorP2P-Next <p2p-next@cs.pub.ro>
Tue, 10 Aug 2010 07:27:47 +0000 (10:27 +0300)
committerP2P-Next <p2p-next@cs.pub.ro>
Tue, 10 Aug 2010 07:27:47 +0000 (10:27 +0300)
instrumentation/hrktorrent/main.cpp

index b59f692..9546d76 100644 (file)
@@ -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 <port>\t- start port range (default: 6881)\n";
-       std::cout << "\t--maxport <port>\t- end port range (default: 6999)\n";
-
-       std::cout << "\t--maxdown <speed>\t- download speed limit (in kb/s) (default: unlimited)\n";
-       std::cout << "\t--maxup <speed>\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 <port>\t\tstart port range (default: 6881)\n";
+       std::cout << "\t-P, --maxport <port>\t\tend port range (default: 6999)\n";
+
+       std::cout << "\t-d, --maxdown <speed>\t\tdownload speed limit (in kb/s) (default: unlimited)\n";
+       std::cout << "\t-u, --maxup <speed>\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 <time>\treannounce every X minutes (default: 2)\n";
+       std::cout << "\t-o, --outputdir <path>\t\tset the target directory (default: .)\n";
+       std::cout << "\t-i, --ipfilter\t\t\tenable ip filtering (default: off)\n";
+       std::cout << "\t-v, --verbose\t\t\tprint verbose messages (default: off)\n";
+       std::cout << "\t-V, --version\t\t\tprint version\n";
+       std::cout << "\t-h, --help\t\t\tprint this help screen\n\n";
 
        std::cout << "example: " << argv0 << " --minport 6500 --maxport 6600 --maxup 50 --maxdown 60 --limitlocal --nodht file.torrent\n";