Code

now we provide long opts if they do not exist
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Mon, 21 Oct 2002 03:40:06 +0000 (03:40 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Mon, 21 Oct 2002 03:40:06 +0000 (03:40 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@145 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_pgsql.c

index 03614ab1a8a2662cfbe51824623b904b5104f0f2..a2fd90e01b2f4c250950766d51a2d1179c8626b6 100644 (file)
@@ -233,13 +233,8 @@ void
 print_usage (void)
 {
        printf ("Usage:\n" " %s %s\n"
-#ifdef HAVE_GETOPT_H
                                        " %s (-h | --help) for detailed help\n"
                                        " %s (-V | --version) for version information\n",
-#else
-                                       " %s -h for detailed help\n"
-                                       " %s -V for version information\n",
-#endif
                                        PROGNAME, OPTIONS, PROGNAME, PROGNAME);
 }
 \f
@@ -280,7 +275,7 @@ process_arguments (int argc, char **argv)
                        break;
 
                switch (c) {
-               case '?':     /* help */
+               case '?':     /* usage */
                        usage2 ("Unknown argument", optarg);
                case 'h':     /* help */
                        print_help ();