]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug #659: to allow --help through and not start services
authorDanny Mayer <mayer@ntp.org>
Thu, 10 Aug 2006 01:57:02 +0000 (21:57 -0400)
committerDanny Mayer <mayer@ntp.org>
Thu, 10 Aug 2006 01:57:02 +0000 (21:57 -0400)
bk: 44da926eqS246-Fa28WoOQXN1BjHwA

ports/winnt/ntpd/ntservice.c

index 8a3664a95cde075d8ebc199ae4244f99b8dc80fc..8463d749a1dbfb236d91620fa69e15a3c8bd6e68 100644 (file)
@@ -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);
                }
        }