From 0c41649927fe66913e2e3168f69e671bf7199987 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Wed, 04 Apr 2007 07:46:18 +0000
Subject: [PATCH] Fix CLI consistency issues: 1407 1408 1410 1411 1412 1413 1414 1416 1417 1418 1419 1420 1421
---
opends/src/server/org/opends/server/tools/RestoreDB.java | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/RestoreDB.java b/opends/src/server/org/opends/server/tools/RestoreDB.java
index ac3face..7e78e5b 100644
--- a/opends/src/server/org/opends/server/tools/RestoreDB.java
+++ b/opends/src/server/org/opends/server/tools/RestoreDB.java
@@ -65,6 +65,7 @@
import static org.opends.server.messages.ToolMessages.*;
import static org.opends.server.util.ServerConstants.*;
import static org.opends.server.util.StaticUtils.*;
+import static org.opends.server.tools.ToolConstants.*;
@@ -137,8 +138,9 @@
try
{
configClass =
- new StringArgument("configclass", 'C', "configClass", true, false,
- true, "{configClass}",
+ new StringArgument("configclass", OPTION_SHORT_CONFIG_CLASS,
+ OPTION_LONG_CONFIG_CLASS, true, false,
+ true, OPTION_VALUE_CONFIG_CLASS,
ConfigFileHandler.class.getName(), null,
MSGID_RESTOREDB_DESCRIPTION_CONFIG_CLASS);
configClass.setHidden(true);
@@ -172,13 +174,14 @@
argParser.addArgument(listBackups);
- verifyOnly = new BooleanArgument("verifyonly", 'V', "verifyOnly",
+ verifyOnly = new BooleanArgument("verifyonly", OPTION_SHORT_DRYRUN,
+ OPTION_LONG_DRYRUN,
MSGID_RESTOREDB_DESCRIPTION_VERIFY_ONLY);
argParser.addArgument(verifyOnly);
displayUsage =
- new BooleanArgument("help", 'H', "help",
+ new BooleanArgument("help", OPTION_SHORT_HELP, OPTION_LONG_HELP,
MSGID_RESTOREDB_DESCRIPTION_USAGE);
argParser.addArgument(displayUsage);
argParser.setUsageArgument(displayUsage);
--
Gitblit v1.10.0