Permalink
Browse files

reformatted usage output and added quiet description

  • Loading branch information...
badrock committed Jun 25, 2014
1 parent fb1ea85 commit 18c1470026b3e8d6e6d8952ed7bc2807eda37061
Showing with 18 additions and 17 deletions.
  1. +18 −17 swift.cpp
View
@@ -43,35 +43,36 @@ using namespace swift;
void usage(void)
{
fprintf(stderr,"Usage:\n");
fprintf(stderr," -h, --hash\tswarm ID of the content (root hash or public key)\n");
fprintf(stderr," -f, --file\tname of file to use (root hash by default)\n");
fprintf(stderr," -d, --dir\tname of directory to scan and seed\n");
fprintf(stderr," -l, --listen\t[ip:|host:]port to listen to (default: random). MUST set for IPv6\n");
fprintf(stderr," -t, --tracker\t[ip:|host:]port of the tracker or URL (default: none). IPv6 between [] cf. RFC2732\n");
fprintf(stderr," -D, --debug\tfile name for debugging logs (default: stdout)\n");
fprintf(stderr," -B\tdebugging logs to stdout (win32 hack)\n");
fprintf(stderr," -h, --hash\t\tswarm ID of the content (root hash or public key)\n");
fprintf(stderr," -f, --file\t\tname of file to use (root hash by default)\n");
fprintf(stderr," -d, --dir\t\tname of directory to scan and seed\n");
fprintf(stderr," -l, --listen\t\t[ip:|host:]port to listen to (default: random). MUST set for IPv6\n");
fprintf(stderr," -t, --tracker\t\t[ip:|host:]port of the tracker or URL (default: none). IPv6 between [] cf. RFC2732\n");
fprintf(stderr," -D, --debug\t\tfile name for debugging logs (default: stdout)\n");
fprintf(stderr," -p, --progress\treport transfer progress\n");
fprintf(stderr," -g, --httpgw\t[ip:|host:]port to bind HTTP content gateway to (no default)\n");
fprintf(stderr," -s, --statsgw\t[ip:|host:]port to bind HTTP stats listen socket to (no default)\n");
fprintf(stderr," -c, --cmdgw\t[ip:|host:]port to bind CMD listen socket to (no default)\n");
fprintf(stderr," -g, --httpgw\t\t[ip:|host:]port to bind HTTP content gateway to (no default)\n");
fprintf(stderr," -s, --statsgw\t\t[ip:|host:]port to bind HTTP stats listen socket to (no default)\n");
fprintf(stderr," -c, --cmdgw\t\t[ip:|host:]port to bind CMD listen socket to (no default)\n");
fprintf(stderr," -C, --cmdgwint\tcmdgw report interval in seconds\n");
fprintf(stderr," -E, --perscmdgw\tmake the cmdgw persistent, the client will close when the cmd socket is closed\n");
fprintf(stderr," -o, --destdir\tdirectory for saving data (default: none)\n");
fprintf(stderr," -u, --uprate\tupload rate limit in KiB/s (default: unlimited)\n");
fprintf(stderr," -o, --destdir\t\tdirectory for saving data (default: none)\n");
fprintf(stderr," -u, --uprate\t\tupload rate limit in KiB/s (default: unlimited)\n");
fprintf(stderr," -y, --downrate\tdownload rate limit in KiB/s (default: unlimited)\n");
fprintf(stderr," -w, --wait\tlimit running time, e.g. 1[DHMs] (default: infinite with -l, -g)\n");
fprintf(stderr," -w, --wait\t\tlimit running time, e.g. 1[DHMs] (default: infinite with -l, -g)\n");
fprintf(stderr," -H, --checkpoint\tcreate checkpoint of file when complete for fast restart\n");
fprintf(stderr," -z, --chunksize\tchunk size in bytes (default: %d)\n", SWIFT_DEFAULT_CHUNK_SIZE);
fprintf(stderr," -m, --printurl\tcompose URL from tracker, file and chunksize\n");
fprintf(stderr," -r, --urlfile\tfile to write URL to for --printurl\n");
fprintf(stderr," -q, --quiet\t\tquiet mode: don't print general status information on stderr\n");
fprintf(stderr," -r, --urlfile\t\tfile to write URL to for --printurl\n");
fprintf(stderr," -M, --multifile\tcreate multi-file spec with given files\n");
fprintf(stderr," -e, --zerosdir\tdirectory with checkpointed content to serve from with zero state\n");
fprintf(stderr," -i, --source\tlive source input (URL or filename or - for stdin)\n");
fprintf(stderr," -k, --live\tperform live download, use with -t and -h\n");
fprintf(stderr," -r filename\t to save URL to\n");
fprintf(stderr," -i, --source\t\tlive source input (URL or filename or - for stdin)\n");
fprintf(stderr," -k, --live\t\tperform live download, use with -t and -h\n");
fprintf(stderr," -1 filename-in-hex\ta win32 workaround for non UTF-16 popen\n");
fprintf(stderr," -2 urlfilename-in-hex\ta win32 workaround for non UTF-16 popen\n");
fprintf(stderr," -3 zerosdir-in-hex\ta win32 workaround for non UTF-16 popen\n");
fprintf(stderr," -B\tdebugging logs to stdout (win32 hack)\n");
fprintf(stderr," -r filename\tto save URL to\n");
fprintf(stderr," -T time-out\tin seconds for slow zero state connections\n");
fprintf(stderr," -G GTest mode\n");
fprintf(stderr," -K live keypair filename\n");

0 comments on commit 18c1470

Please sign in to comment.