Commit 4349d429 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

shrpx: Add usage for <PRIVATE_KEY> <CERT>

parent 9aa7af2c
...@@ -367,7 +367,7 @@ void print_usage(std::ostream& out) ...@@ -367,7 +367,7 @@ void print_usage(std::ostream& out)
{ {
out << "Usage: shrpx [-Dh] [-s|--client|-p] [-b <HOST,PORT>]\n" out << "Usage: shrpx [-Dh] [-s|--client|-p] [-b <HOST,PORT>]\n"
<< " [-f <HOST,PORT>] [-n <CORES>] [-c <NUM>] [-L <LEVEL>]\n" << " [-f <HOST,PORT>] [-n <CORES>] [-c <NUM>] [-L <LEVEL>]\n"
<< " [OPTIONS...] <PRIVATE_KEY> <CERT>\n" << " [OPTIONS...] [<PRIVATE_KEY> <CERT>]\n"
<< "\n" << "\n"
<< "A reverse proxy for SPDY/HTTPS.\n" << "A reverse proxy for SPDY/HTTPS.\n"
<< std::endl; << std::endl;
...@@ -378,7 +378,12 @@ namespace { ...@@ -378,7 +378,12 @@ namespace {
void print_help(std::ostream& out) void print_help(std::ostream& out)
{ {
print_usage(out); print_usage(out);
out << "\n" out << "Positional arguments:\n"
<< " <PRIVATE_KEY> Set path to server's private key. Required\n"
<< " unless either -p or --client is specified.\n"
<< " <CERT> Set path to server's certificate. Required\n"
<< " unless either -p or --client is specified.\n"
<< "\n"
<< "OPTIONS:\n" << "OPTIONS:\n"
<< " -b, --backend=<HOST,PORT>\n" << " -b, --backend=<HOST,PORT>\n"
<< " Set backend host and port.\n" << " Set backend host and port.\n"
......
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