From df8adb05fcf4cbb21941c2a033e0919d1c885325 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 15 Dec 2015 09:29:28 +0000
Subject: [PATCH] CommonArguments.java: Renamed getVersion() to getLdapVersion().

---
 opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java b/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java
index 9e9c041..ba719ec 100644
--- a/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java
+++ b/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/CommonArguments.java
@@ -195,16 +195,16 @@
     }
 
     /**
-     * Returns the "version" integer argument.
+     * Returns the "ldapVersion" integer argument.
      *
-     * @return The "version" argument.
+     * @return The "ldapVersion" argument.
      * @throws ArgumentException
      *             If there is a problem with any of the parameters used to create this argument.
      */
-    public static IntegerArgument getVersion() throws ArgumentException {
-        return new IntegerArgument("version", OPTION_SHORT_PROTOCOL_VERSION, OPTION_LONG_PROTOCOL_VERSION, false,
-                false, true, INFO_PROTOCOL_VERSION_PLACEHOLDER.get(), 3, OPTION_LONG_PROTOCOL_VERSION,
-                INFO_DESCRIPTION_VERSION.get());
+    public static IntegerArgument getLdapVersion() throws ArgumentException {
+        return new IntegerArgument(OPTION_LONG_PROTOCOL_VERSION.toLowerCase(), OPTION_SHORT_PROTOCOL_VERSION,
+                OPTION_LONG_PROTOCOL_VERSION, false, false, true, INFO_PROTOCOL_VERSION_PLACEHOLDER.get(), 3,
+                OPTION_LONG_PROTOCOL_VERSION, INFO_DESCRIPTION_VERSION.get());
     }
 
     /**

--
Gitblit v1.10.0