Commit 2b7627f7 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

h2load: Use raw-string literal for help output

parent 0620052f
...@@ -527,8 +527,8 @@ void print_version(std::ostream& out) ...@@ -527,8 +527,8 @@ void print_version(std::ostream& out)
namespace { namespace {
void print_usage(std::ostream& out) void print_usage(std::ostream& out)
{ {
out << "Usage: h2load [OPTIONS]... <URI>\n" out << R"(Usage: h2load [OPTIONS]... <URI>
<< "benchmarking tool for HTTP/2 and SPDY server" << std::endl; benchmarking tool for HTTP/2 and SPDY server)" << std::endl;
} }
} // namespace } // namespace
...@@ -536,31 +536,29 @@ namespace { ...@@ -536,31 +536,29 @@ namespace {
void print_help(std::ostream& out) void print_help(std::ostream& out)
{ {
print_usage(out); print_usage(out);
out << "\n"
<< " <URI> Specify URI to access.\n" out << R"(
<< "Options:\n" <URI> Specify URI to access.
<< " -n, --requests=<N> Number of requests. Default: " Options:
<< config.nreqs << "\n" -n, --requests=<N> Number of requests. Default: )"
<< " -c, --clients=<N> Number of concurrent clients. Default: " << config.nreqs << R"(
<< config.nclients << "\n" -c, --clients=<N> Number of concurrent clients. Default: )"
<< " -t, --threads=<N> Number of native threads. Default: " << config.nclients << R"(
<< config.nthreads << "\n" -t, --threads=<N> Number of native threads. Default: )"
<< " -m, --max-concurrent-streams=<N>\n" << config.nthreads << R"(
<< " Max concurrent streams to issue per session. \n" -m, --max-concurrent-streams=<N>
<< " Default: " Max concurrent streams to issue per session.
<< config.max_concurrent_streams << "\n" Default: )"
<< " -w, --window-bits=<N>\n" << config.max_concurrent_streams << R"(
<< " Sets the stream level initial window size\n" -w, --window-bits=<N>
<< " to (2**<N>)-1. For SPDY, 2**<N> is used\n" Sets the stream level initial window size to
<< " instead.\n" (2**<N>)-1. For SPDY, 2**<N> is used instead.
<< " -W, --connection-window-bits=<N>\n" -W, --connection-window-bits=<N>
<< " Sets the connection level initial window\n" Sets the connection level initial window size to
<< " size to 2**<N>-1. This option does not work\n" (2**<N>)-1. This option does not work with SPDY.
<< " with SPDY.\n" -v, --verbose Output debug information.
<< " instead.\n" --version Display version information and exit.
<< " -v, --verbose Output debug information.\n" -h, --help Display this help and exit.)"
<< " --version Display version information and exit.\n"
<< " -h, --help Display this help and exit.\n"
<< std::endl; << std::endl;
} }
} // namespace } // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment