From 9b2216507237ce4a850da6d44a34cbd141ec1615 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 12 May 2012 21:13:56 +0900 Subject: [PATCH] Updated usage output for example programs --- examples/spdycat.cc | 5 +++-- examples/spdyd.cc | 14 ++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/examples/spdycat.cc b/examples/spdycat.cc index 0d1c828..ae3cedc 100644 --- a/examples/spdycat.cc +++ b/examples/spdycat.cc @@ -394,7 +394,7 @@ int run(char **uris, int n) void print_usage(std::ostream& out) { out << "Usage: spdycat [-Onv3] [-t ] [-w ] [--cert=]\n" - << " [--key=] URI..." + << " [--key=] ..." << std::endl; } @@ -412,7 +412,8 @@ void print_help(std::ostream& out) << " filename. Not implemented yet.\n" << " -3, --spdy3 Only use SPDY/3.\n" << " -t, --timeout= Timeout each request after seconds.\n" - << " -w, --window-bits= Sets the initial window size to 2**.\n" + << " -w, --window-bits=\n" + << " Sets the initial window size to 2**.\n" << " --cert= Use the specified client certificate file.\n" << " The file must be in PEM format.\n" << " --key= Use the client private key file. The file\n" diff --git a/examples/spdyd.cc b/examples/spdyd.cc index 7f23506..441e1ef 100644 --- a/examples/spdyd.cc +++ b/examples/spdyd.cc @@ -47,7 +47,8 @@ extern bool ssl_debug; namespace { void print_usage(std::ostream& out) { - out << "Usage: spdyd [-Ddhv] PORT PRIVATE_KEY CERT" << std::endl; + out << "Usage: spdyd [-3DVhv] [-d ] " + << std::endl; } } // namespace @@ -67,16 +68,13 @@ void print_help(std::ostream& out) << " certificate, the handshake is terminated.\n" << " Currently, this option just requests a\n" << " client certificate and does not verify it.\n" - << "\n" - << " -d, --htdocs=PATH Specify document root. If this option is not\n" - << " specified, the document root is the current\n" - << " working directory.\n" - << "\n" + << " -d, --htdocs=\n" + << " Specify document root. If this option is\n" + << " not specified, the document root is the\n" + << " current working directory.\n" << " -v, --verbose Print debug information such as reception/\n" << " transmission of frames and name/value pairs.\n" - << "\n" << " -3, --spdy3 Only use SPDY/3.\n" - << "\n" << " -h, --help Print this help.\n" << std::endl; }