From 97491bcdb796a35879477018ea768c1be2c989e4 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Fri, 22 Oct 2010 06:52:25 +0000
Subject: [PATCH] Sync commit by matthew_swift Expose Grizzly transport configuration in LDAPOptions and LDAPListenerOptions in order to allow better customization of transport.

---
 sdk/src/com/sun/opends/sdk/tools/SearchRate.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/sdk/src/com/sun/opends/sdk/tools/SearchRate.java b/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
index ddc81ae..183a7bc 100644
--- a/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
+++ b/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
@@ -447,6 +447,14 @@
     try
     {
       argParser.parseArguments(args);
+
+      // If we should just display usage or version information,
+      // then print it and exit.
+      if (argParser.usageOrVersionDisplayed())
+      {
+        return 0;
+      }
+
       connectionFactory =
           connectionFactoryProvider.getAuthenticatedConnectionFactory();
       runner.validate();
@@ -456,17 +464,9 @@
       final LocalizableMessage message = ERR_ERROR_PARSING_ARGS.get(ae
           .getMessage());
       println(message);
-      println(argParser.getUsageMessage());
       return ResultCode.CLIENT_SIDE_PARAM_ERROR.intValue();
     }
 
-    // If we should just display usage or version information,
-    // then print it and exit.
-    if (argParser.usageOrVersionDisplayed())
-    {
-      return 0;
-    }
-
     final List<String> attributes = new LinkedList<String>();
     final ArrayList<String> filterAndAttributeStrings = argParser
         .getTrailingArguments();

--
Gitblit v1.10.0