From cb15b9d76a1b88411f1dad2ced8b397a14c6c59a Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 3 Mar 2007 22:00:58 +0100 Subject: [PATCH] show default values in server --help --- server.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/server.c b/server.c index 39a28a0..07548e8 100644 --- 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 \tSet port number (default is %d)\n" + " -p, --port %d\tSet port number\n" "\n" " -s, --seed \tStart with given random seed\n" - " -i, --speed \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) -- 2.30.0