From 4349d429880207fd4b40b3dd6042c6da03234864 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 22 Nov 2012 22:00:38 +0900 Subject: [PATCH] shrpx: Add usage for --- src/shrpx.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index 22cfe34f..c3f290ec 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -367,7 +367,7 @@ void print_usage(std::ostream& out) { out << "Usage: shrpx [-Dh] [-s|--client|-p] [-b ]\n" << " [-f ] [-n ] [-c ] [-L ]\n" - << " [OPTIONS...] \n" + << " [OPTIONS...] [ ]\n" << "\n" << "A reverse proxy for SPDY/HTTPS.\n" << std::endl; @@ -378,7 +378,12 @@ namespace { void print_help(std::ostream& out) { print_usage(out); - out << "\n" + out << "Positional arguments:\n" + << " Set path to server's private key. Required\n" + << " unless either -p or --client is specified.\n" + << " Set path to server's certificate. Required\n" + << " unless either -p or --client is specified.\n" + << "\n" << "OPTIONS:\n" << " -b, --backend=\n" << " Set backend host and port.\n"