summaryrefslogtreecommitdiffstats
path: root/plugins/check_pgsql.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-10-21 03:40:06 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-10-21 03:40:06 (GMT)
commitde757dba6e4b8b8271d5b4c74b87ee0229f4eb57 (patch)
tree19406b63ed9c2c2f65faeca59b06c65a3131c61f /plugins/check_pgsql.c
parentf275f7ff070f249144ccdcd92a8e81b8e44b2d19 (diff)
downloadmonitoring-plugins-de757dba6e4b8b8271d5b4c74b87ee0229f4eb57.tar.gz
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
Diffstat (limited to 'plugins/check_pgsql.c')
-rw-r--r--plugins/check_pgsql.c7
1 files changed, 1 insertions, 6 deletions
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
233print_usage (void) 233print_usage (void)
234{ 234{
235 printf ("Usage:\n" " %s %s\n" 235 printf ("Usage:\n" " %s %s\n"
236#ifdef HAVE_GETOPT_H
237 " %s (-h | --help) for detailed help\n" 236 " %s (-h | --help) for detailed help\n"
238 " %s (-V | --version) for version information\n", 237 " %s (-V | --version) for version information\n",
239#else
240 " %s -h for detailed help\n"
241 " %s -V for version information\n",
242#endif
243 PROGNAME, OPTIONS, PROGNAME, PROGNAME); 238 PROGNAME, OPTIONS, PROGNAME, PROGNAME);
244} 239}
245 240
@@ -280,7 +275,7 @@ process_arguments (int argc, char **argv)
280 break; 275 break;
281 276
282 switch (c) { 277 switch (c) {
283 case '?': /* help */ 278 case '?': /* usage */
284 usage2 ("Unknown argument", optarg); 279 usage2 ("Unknown argument", optarg);
285 case 'h': /* help */ 280 case 'h': /* help */
286 print_help (); 281 print_help ();