diff options
author | Angelo Mantellini <manangel@cisco.com> | 2019-03-20 11:03:25 +0100 |
---|---|---|
committer | Angelo Mantellini <manangel@cisco.com> | 2019-03-20 14:49:36 +0100 |
commit | d0111c2f8b5b73739f7193a79415e1d0bc8ee8c8 (patch) | |
tree | 6422f7126c5200e384b7cc34a15dc79a8a54d3bb /apps/src/http-server/http-server.cc | |
parent | d9b0f33a36f0f3f345d1059a82d725002780ca96 (diff) |
[HICN-128] README utils and renaming of executables
Change-Id: I5e3cd78306d9f4a25197b54ca5b2779e600891c8
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'apps/src/http-server/http-server.cc')
-rw-r--r-- | apps/src/http-server/http-server.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/apps/src/http-server/http-server.cc b/apps/src/http-server/http-server.cc index f65734bae..ec6aa19a1 100644 --- a/apps/src/http-server/http-server.cc +++ b/apps/src/http-server/http-server.cc @@ -166,13 +166,19 @@ void afterSignal(HttpServer *webServer, const std::error_code &errorCode) { } void usage(const char *programName) { - cerr << programName - << " [-p PATH_TO_ROOT_FOOT_FOLDER] [-f CONFIGURATION_FILE] [-o " - "TCP_LISTEN_PORT] [-l WEBSERVER_PREFIX] [-x TCP_PROXY_ADDRESS] [-z " - "ICN_PROXY_PREFIX]\n" - << "Web server able to publish content and generate http responses over " - "TCP/ICN\n" + cerr << "usage: " << programName << " [options]" << endl; + cerr << programName << " options:" << endl; + cerr << "-p <root_folder_path> = path to root folder" << endl; + cerr << "-f <coniguration_path> = configuration file path" << endl; + cerr << "-o <tcp_port> = tcp listener port" << endl; + cerr << "-l <webserver_prefix> = webserver prefix" << endl; + cerr << "-x <tcp_proxy_prefix> = tcp proxy prefix" << endl; + cerr << "-z <hicn_proxy_prefix> = hicn proxy prefix" << endl; + cerr << endl; + cerr << "Web server able to publish content and generate http responses over " + "TCP/ICN" << endl; + cerr << endl; exit(1); } |