From 184ed890c828220c114f60ee165ce2230ada3d7c Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Tue, 15 May 2007 08:10:13 +0000
Subject: [PATCH] issue 1430 fix (all utilities should provide as standard option -V/--version) to specify the LDAP protocol version number, we should use now -V/--ldapVersion to get the 'product' version --version
---
opends/src/server/org/opends/server/tools/ToolConstants.java | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/ToolConstants.java b/opends/src/server/org/opends/server/tools/ToolConstants.java
index 92ba45a..3b2e64a 100644
--- a/opends/src/server/org/opends/server/tools/ToolConstants.java
+++ b/opends/src/server/org/opends/server/tools/ToolConstants.java
@@ -480,5 +480,34 @@
*/
public static final String OPTION_LONG_EFFECTIVERIGHTSATTR =
"getEffectiveRightsAttribute";
+
+ /**
+ * The value for the short option protocol version attributes.
+ */
+ public static final char OPTION_SHORT_PROTOCOL_VERSION = 'V';
+
+ /**
+ * The value for the long option protocol version
+ * attribute.
+ */
+ public static final String OPTION_LONG_PROTOCOL_VERSION =
+ "ldapVersion";
+
+ /**
+ * The placeholder value of protocol version that will be
+ * displayed in usage information.
+ */
+ public static final String OPTION_VALUE_PROTOCOL_VERSION = "{version}";
+
+ /**
+ * The value for the long option version.
+ */
+ public static final char OPTION_SHORT_PRODUCT_VERSION = 'V';
+
+ /**
+ * The value for the long option version.
+ */
+ public static final String OPTION_LONG_PRODUCT_VERSION = "version";
+
}
--
Gitblit v1.10.0