From 50059df3edc0898633d96d13837a1cfaa38cbf10 Mon Sep 17 00:00:00 2001 From: Dennis Koot Date: Thu, 27 Feb 2014 10:17:07 +0100 Subject: [PATCH] better list of options for -h --- main.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index a8d23fe..44de05a 100644 --- a/main.c +++ b/main.c @@ -345,7 +345,26 @@ void inner_main (void) { } void usage (void) { - printf ("%s [-u username] [-h] [-k public key name] [-N] [-v] [-l log_level]\n", PROGNAME); + printf ("%s Usage\n", PROGNAME); + + printf (" -h this help list\n"); + printf (" -u username specify username\n"); + printf (" -k public-key specify server public key\n"); + printf (" -v verbose\n"); + printf (" -l [1-3] log level\n"); + printf (" -L log-file log net file\n"); + printf (" -N message num mode\n"); + printf (" -c config-file specify config file\n"); + printf (" -p prefix specify prefix\n"); + printf (" -R register mode\n"); + printf (" -f sync from start\n"); + printf (" -B enable binlog\n"); + printf (" -E disable auto accept\n"); + printf (" -w allow weak random\n"); + printf (" -s specify lua script\n"); + printf (" -W wait dialog list\n"); + printf ("\n"); + exit (1); }