From: Danny Mayer Date: Thu, 10 Aug 2006 01:57:02 +0000 (-0400) Subject: Bug #659: to allow --help through and not start services X-Git-Tag: NTP_4_2_3P29~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cb6cac23081f95728bb3352fddb1e116ad19947;p=thirdparty%2Fntp.git Bug #659: to allow --help through and not start services bk: 44da926eqS246-Fa28WoOQXN1BjHwA --- diff --git a/ports/winnt/ntpd/ntservice.c b/ports/winnt/ntpd/ntservice.c index 8a3664a95..8463d749a 100644 --- a/ports/winnt/ntpd/ntservice.c +++ b/ports/winnt/ntpd/ntservice.c @@ -73,6 +73,7 @@ int main( int argc, char *argv[] ) while (argv[i]) { if (!_strnicmp(argv[i], "-d", 2) || !strcmp(argv[i], "-q") || + !strcmp(argv[i], "--help") || !strcmp(argv[i], "-n")) { foreground = TRUE; break; @@ -98,8 +99,7 @@ int main( int argc, char *argv[] ) #ifdef DEBUG fprintf(stderr, "%s: unable to start as service, rc: %i\n\n", progname, rc); #endif - ntpd_usage(); - fprintf(stderr, "\nUse -d, -q, or -n to run from the command line.\n"); + fprintf(stderr, "\nUse -d, -q, --help or -n to run from the command line.\n"); exit(rc); } }