Code

define and use usage3 where second part of message is a an int/char
[nagiosplug.git] / plugins / negate.c
index a11558d58a80a96f0c27d8b844d50fe9ca99c6ca..c76f5ca08cddddddc6bd50fdeb48c1cc0dc24741 100644 (file)
@@ -234,17 +234,17 @@ process_arguments (int argc, char **argv)
 
        while (1) {
 #ifdef HAVE_GETOPT_H
-               c = getopt_long (argc, argv, "+?hVt:",
+               c = getopt_long (argc, argv, "hVt:",
                                 long_options, &option_index);
 #else
-               c = getopt (argc, argv, "+?hVt:");
+               c = getopt (argc, argv, "hVt:");
 #endif
                if (c == -1 || c == EOF)
                        break;
 
                switch (c) {
                case '?':     /* help */
-                       usage2 ("Unknown argument", optarg);
+                       usage3 ("Unknown argument", optopt);
                case 'h':     /* help */
                        print_help ();
                        exit (EXIT_SUCCESS);