summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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 ();