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/ModRate.java | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/sdk/src/com/sun/opends/sdk/tools/ModRate.java b/sdk/src/com/sun/opends/sdk/tools/ModRate.java
index 548180c..488fedb 100644
--- a/sdk/src/com/sun/opends/sdk/tools/ModRate.java
+++ b/sdk/src/com/sun/opends/sdk/tools/ModRate.java
@@ -318,12 +318,11 @@
{
// Create the command-line argument parser for use with this
// program.
- final LocalizableMessage toolDescription = LocalizableMessage
- .raw("This utility can be used to " + "measure modify performance");
- // TODO: correct usage
+ final LocalizableMessage toolDescription =
+ INFO_MODRATE_TOOL_DESCRIPTION.get();
final ArgumentParser argParser = new ArgumentParser(
ModRate.class.getName(), toolDescription, false, true, 1, 0,
- "[modifyString ...]");
+ "[(attribute:value format string) ...]");
ArgumentParserConnectionFactory connectionFactory;
ModifyPerformanceRunner runner;
@@ -353,9 +352,9 @@
argParser.addArgument(noPropertiesFileArgument);
argParser.setNoPropertiesFileArgument(noPropertiesFileArgument);
- baseDN = new StringArgument("baseDN", OPTION_SHORT_BASEDN,
- OPTION_LONG_BASEDN, true, false, true, INFO_BASEDN_PLACEHOLDER.get(),
- null, null, INFO_SEARCH_DESCRIPTION_BASEDN.get());
+ baseDN = new StringArgument("targetDN", OPTION_SHORT_BASEDN,
+ OPTION_LONG_TARGETDN, true, false, true, INFO_TARGETDN_PLACEHOLDER.get(),
+ null, null, INFO_MODRATE_TOOL_DESCRIPTION_TARGETDN.get());
baseDN.setPropertyName(OPTION_LONG_BASEDN);
argParser.addArgument(baseDN);
--
Gitblit v1.10.0