From 0a5dbef13992070bd30e244f8d361d5a13852dfd Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 10 Dec 2013 10:57:24 +0100 Subject: tests: Fix the help output of the echo server --- tests/echo_srv.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tests/echo_srv.c') 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; } -- cgit