aboutsummaryrefslogtreecommitdiff
path: root/tests/echo_srv.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-12-10 10:57:24 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-10 14:23:26 +0100
commit78cc4fb76d14d4df313e412bf148312eea2c706b (patch)
treed64c6b04c3f786a1b835ea1ccdee030f4992f8a6 /tests/echo_srv.c
parent2b53d420caa157aa7084ace2c07365bd675e026a (diff)
downloadsocket_wrapper-78cc4fb76d14d4df313e412bf148312eea2c706b.tar.gz
socket_wrapper-78cc4fb76d14d4df313e412bf148312eea2c706b.tar.xz
socket_wrapper-78cc4fb76d14d4df313e412bf148312eea2c706b.zip
tests: Fix the help output of the echo server
Diffstat (limited to 'tests/echo_srv.c')
-rw-r--r--tests/echo_srv.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/echo_srv.c b/tests/echo_srv.c
index 13e2bc3..32a03da 100644
--- a/tests/echo_srv.c
+++ b/tests/echo_srv.c
@@ -296,8 +296,15 @@ int main(int argc, char **argv)
opts.daemon = true;
break;
default: /* '?' */
- fprintf(stderr, "Usage: %s [-p port] [-u] [-t] [--pid pidfile]\n",
- argv[0]);
+ fprintf(stderr, "Usage: %s [-p port] [-u] [-t] [-b bind_addr] " \
+ "[-D] [--pid pidfile]\n"
+ "-t makes the server listen on TCP\n"
+ "-u makes the server listen on UDP\n"
+ "-D tells the server to become a deamon and " \
+ "write a PIDfile\n"
+ "The default port is 7, the default PIDfile is " \
+ "echo_srv.pid in the current directory\n",
+ argv[0]);
ret = 1;
goto done;
}