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/LDAPDelete.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/LDAPDelete.java b/opends/src/server/org/opends/server/tools/LDAPDelete.java
index f4f1e2e..9f4d160 100644
--- a/opends/src/server/org/opends/server/tools/LDAPDelete.java
+++ b/opends/src/server/org/opends/server/tools/LDAPDelete.java
@@ -488,9 +488,10 @@
null, null, MSGID_DESCRIPTION_CONTROLS);
argParser.addArgument(controlStr);
- version = new IntegerArgument("version", 'V', "version", false, false,
- true, "{version}", 3, null,
- MSGID_DESCRIPTION_VERSION);
+ version = new IntegerArgument("version", OPTION_SHORT_PROTOCOL_VERSION,
+ OPTION_LONG_PROTOCOL_VERSION, false, false,
+ true, OPTION_VALUE_PROTOCOL_VERSION, 3,
+ null, MSGID_DESCRIPTION_VERSION);
argParser.addArgument(version);
encodingStr = new StringArgument("encoding", 'i', "encoding", false,
@@ -540,9 +541,9 @@
return 1;
}
- // If we should just display usage information, then it has already been
- // done so just exit.
- if (argParser.usageDisplayed())
+ // If we should just display usage or version information,
+ // then it has already been done so just exit.
+ if (argParser.usageOrVersionDisplayed())
{
return 0;
}
--
Gitblit v1.10.0