From 65ce343417c0cf2037708066defb677ae893c4ac Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Mon, 23 Apr 2007 10:09:51 +0000
Subject: [PATCH] Fix for issue #1490 (ldapmodify -f option description incorrect)

---
 opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java      |    2 +-
 opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java |    9 +++++++++
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
index 1cab65f..2288ff6 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -6929,6 +6929,13 @@
     CATEGORY_MASK_TOOLS | SEVERITY_MASK_SEVERE_ERROR | 873;
 
   /**
+   * The message ID for the message that will be used as the description for the
+   * filename argument.  It does not take any arguments.
+   */
+  public static final int MSGID_LDAPMODIFY_DESCRIPTION_FILENAME =
+       CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 874;
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -7655,6 +7662,8 @@
                     "control:  %s.");
     registerMessage(MSGID_LDAPMODIFY_POSTREAD_ENTRY,
                     "Target entry after the operation:");
+    registerMessage(MSGID_LDAPMODIFY_DESCRIPTION_FILENAME,
+                    "Specifies the LDIF file containing the changes to apply.");
 
 
 
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java
index 7edb11d..13ecc0e 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java
@@ -683,7 +683,7 @@
       filename = new StringArgument("filename", OPTION_SHORT_FILENAME,
                                     OPTION_LONG_FILENAME, false, false,
                                     true, OPTION_VALUE_FILENAME, null, null,
-                                    MSGID_DELETE_DESCRIPTION_FILENAME);
+                                    MSGID_LDAPMODIFY_DESCRIPTION_FILENAME);
       argParser.addArgument(filename);
 
       saslExternal = new BooleanArgument("useSASLExternal", 'r',

--
Gitblit v1.10.0