Code

Changed usage output to show -4 and -6 are mutually exclusive. You can only
authorJeremy T. Bouse <undrgrid@users.sourceforge.net>
Sun, 29 Jun 2003 19:22:26 +0000 (19:22 +0000)
committerJeremy T. Bouse <undrgrid@users.sourceforge.net>
Sun, 29 Jun 2003 19:22:26 +0000 (19:22 +0000)
use one or the other but not both. The last one used will win out.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@570 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_ping.c
plugins/check_tcp.c

index ffe7a7d5fc7ed5efaed52bf42fa510acfad547c6..0b2afce56e235774142b315d232fd7569c66a77c 100644 (file)
@@ -19,7 +19,7 @@ const char *progname = "check_ping";
 
 #define OPTIONS "\
 -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\
-       [-p packets] [-t timeout] [-L] [-4] [-6]\n"
+       [-p packets] [-t timeout] [-L] [-4|-6]\n"
 
 #define LONGOPTIONS "\
 -H, --hostname=HOST\n\
index 0f19c01e87b83d61a22b1e4a06c0ab504a5de4f1..b8af1a1d8699a5a47737be484bd4886a4a6167c7 100644 (file)
@@ -29,7 +29,7 @@ This plugin tests %s connections with the specified host.\n";
 const char *option_summary = "\
 -H host -p port [-w warn_time] [-c crit_time] [-s send_string]\n\
        [-e expect_string] [-q quit_string] [-m maxbytes] [-d delay]\n\
-       [-t to_sec] [-r refuse_state] [-v] [-4] [-6]\n";
+       [-t to_sec] [-r refuse_state] [-v] [-4|-6]\n";
 
 const char *options = "\
  -H, --hostname=ADDRESS\n\