diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-10-21 03:40:06 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-10-21 03:40:06 +0000 |
commit | de757dba6e4b8b8271d5b4c74b87ee0229f4eb57 (patch) | |
tree | 19406b63ed9c2c2f65faeca59b06c65a3131c61f /plugins | |
parent | f275f7ff070f249144ccdcd92a8e81b8e44b2d19 (diff) | |
download | monitoring-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')
-rw-r--r-- | plugins/check_pgsql.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 03614ab1..a2fd90e0 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
@@ -233,13 +233,8 @@ void | |||
233 | print_usage (void) | 233 | print_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 (); |