show default values in server --help
authorMischa POSLAWSKY <netris@shiar.org>
Sat, 3 Mar 2007 21:00:58 +0000 (22:00 +0100)
committerMischa POSLAWSKY <netris@shiar.org>
Sat, 3 Mar 2007 21:00:58 +0000 (22:00 +0100)
server.c

index 39a28a0676f68b53d81bd5a83b06cb82e9d1a64b..07548e86e2794dc375638ffcd9405fb254ef38ef 100644 (file)
--- a/server.c
+++ b/server.c
@@ -440,14 +440,16 @@ void SUsage(void)
                "  -h, --help\t\tPrint this usage information\n"
                "  -H, --info\t\tShow distribution and warranty information\n"
                "\n"
-               "  -p, --port <port>\tSet port number (default is %d)\n"
+               "  -p, --port %d\tSet port number\n"
                "\n"
                "  -s, --seed <seed>\tStart with given random seed\n"
-               "  -i, --speed <sec>\tSet the initial step-down interval, in seconds\n"
-               "  -m, --min-players <2>\tNumber of players required before starting the game\n"
-               "  -x, --max-players <8>\tMaximum number of players allowed in the game\n"
+               "  -i, --speed %.2f\tSet the initial step-down interval, in seconds\n"
+               "  -m, --min-players %d\tNumber of players required before starting the game\n"
+               "  -x, --max-players %d\tMaximum number of players allowed in the game\n"
                "  -c, --continuous\tDon'n quit the game\n"
-               "\n", DEFAULT_PORT);
+               "\n",
+               DEFAULT_PORT, DEFAULT_INTERVAL/1e6, minplayers, maxplayers
+       );
 }
 
 void WriteConf(void)