+

Add informations about --replace-touch parameter in README file and help message

Benjamin Renard [2013-12-19 17:42:57]
Add informations about --replace-touch parameter in README file and help message
Filename
README
check_syncrepl_extended
diff --git a/README b/README
index 422e1a9..de4a0c1 100644
--- a/README
+++ b/README
@@ -20,6 +20,10 @@ value to an attribute of this object and remove it just after. The
 touched attribute is specify by parameter --touch. Of course, couple of
 DN and password provided, must have write right on this attribute.

+If your prefer, you can use --replace-touch parameter to replace value
+of touched attribute instead of adding the touched value. Use-ful in
+case of single-value attribute.
+
 To use this script as Nagios plugin, use -n argument

 Requirement
@@ -66,6 +70,7 @@ Usage
                           will be add to this attribute and remove after. The
                           user use to connect to the LDAP directory must have
                           write permission on this attribute on each object.
+    --replace-touch       In touch mode, replace value instead of adding.


 Copyright
diff --git a/check_syncrepl_extended b/check_syncrepl_extended
index 6579fa9..4f397c6 100755
--- a/check_syncrepl_extended
+++ b/check_syncrepl_extended
@@ -20,6 +20,10 @@
 # touched attribute is specify by parameter --touch. Of course, couple of
 # DN and password provided, must have write right on this attribute.
 #
+# If your prefer, you can use --replace-touch parameter to replace value
+# of touched attribute instead of adding the touched value. Use-ful in
+# case of single-value attribute.
+#
 # This script could be use as Nagios plugin (-n argument)
 #
 # Requirement :
@@ -132,7 +136,7 @@ parser.add_option(	"--touch",
 parser.add_option(	"--replace-touch",
 			dest="replacetouch",
 			action="store_true",
-			help="In touche mode, replace value instead of adding.",
+			help="In touch mode, replace value instead of adding.",
 			default=False)

 (options, args) = parser.parse_args()
ViewGit