From 1c73a49470fceb6c8b43cc7bb51f49e7e0ba7667 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Fri, 17 Sep 2010 17:11:12 +0000
Subject: [PATCH] - Improved usage information for searchrate and modrate - maxIteration is now for the entire run  - Better error handling with the --argument option

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

diff --git a/sdk/src/com/sun/opends/sdk/tools/SearchRate.java b/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
index c30c921..be6a73a 100644
--- a/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
+++ b/sdk/src/com/sun/opends/sdk/tools/SearchRate.java
@@ -374,12 +374,11 @@
   {
     // Create the command-line argument parser for use with this
     // program.
-    final LocalizableMessage toolDescription = LocalizableMessage
-        .raw("This utility can be used to " + "measure search performance");
-    // TODO: correct usage
+    final LocalizableMessage toolDescription =
+        INFO_SEARCHRATE_TOOL_DESCRIPTION.get();
     final ArgumentParser argParser = new ArgumentParser(SearchRate.class
         .getName(), toolDescription, false, true, 1, 0,
-        "[filter] [attributes ...]");
+        "[filter format string] [attributes ...]");
 
     ArgumentParserConnectionFactory connectionFactory;
     SearchPerformanceRunner runner;
@@ -420,7 +419,7 @@
 
       baseDN = new StringArgument("baseDN", OPTION_SHORT_BASEDN,
           OPTION_LONG_BASEDN, true, false, true, INFO_BASEDN_PLACEHOLDER.get(),
-          null, null, INFO_SEARCH_DESCRIPTION_BASEDN.get());
+          null, null, INFO_SEARCHRATE_TOOL_DESCRIPTION_BASEDN.get());
       baseDN.setPropertyName(OPTION_LONG_BASEDN);
       argParser.addArgument(baseDN);
 

--
Gitblit v1.10.0