From 6a874b4428c5d3d0152181c53af653135b7fcdf0 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sun, 7 Jul 2002 18:59:10 +0000 Subject: - Corrected help message --- ncpd/main.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'ncpd') diff --git a/ncpd/main.cc b/ncpd/main.cc index 4771744..7802616 100644 --- a/ncpd/main.cc +++ b/ncpd/main.cc @@ -154,9 +154,18 @@ help() " all - All of the above\n" " -s, --serial=DEV Use serial device DEV.\n" " -b, --baudrate=RATE Set serial speed to BAUD.\n" + ); + cout << +#if DSPEED > 0 +#define SPEEDSTR(x) #x + _(" Default: ") << DSPEED << ".\n"; +#else + _(" Default: Autocycle 115.2k, 57.6k 38.4k, 19.2k\n"); +#endif + cout << _( " -p, --port=[HOST:]PORT Listen on host HOST, port PORT.\n" - " Default for HOST is 127.0.0.1\n" - " Default for PORT is " + " Default for HOST: 127.0.0.1\n" + " Default for PORT: " ) << DPORT << "\n\n"; } -- cgit v1.2.3