From de757dba6e4b8b8271d5b4c74b87ee0229f4eb57 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Mon, 21 Oct 2002 03:40:06 +0000 Subject: now we provide long opts if they do not exist git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@145 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 03614ab..a2fd90e 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c @@ -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); } @@ -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 (); -- cgit v0.10-9-g596f