summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-12-10 10:57:24 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-12-10 10:57:24 +0100
commit0a5dbef13992070bd30e244f8d361d5a13852dfd (patch)
treed64c6b04c3f786a1b835ea1ccdee030f4992f8a6
parent2b53d420caa157aa7084ace2c07365bd675e026a (diff)
downloadsocket_wrapper-master.tar.gz
socket_wrapper-master.tar.xz
socket_wrapper-master.zip
tests: Fix the help output of the echo serverHEADmaster
-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;
}