From 8d1ccf1c65b3892a5c67e77df38786f5ee329773 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 05 Sep 2007 02:02:17 +0000
Subject: [PATCH] Fixed some issues with the connection handling in the ReplicationCliMain, and improvded the messages when we prompt for the type of connection that the user wants to use to update configuration.
---
opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java b/opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java
index 5d8a591..5ce1395 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java
@@ -1327,7 +1327,7 @@
buffer.append(" ");
buffer.append(subCommand.getName());
- buffer.append(" {options}");
+ buffer.append(" ").append(INFO_SUBCMDPARSER_OPTIONS.get());
if (subCommand.allowsTrailingArguments()) {
buffer.append(' ');
buffer.append(subCommand.getTrailingArgumentsDisplayName());
@@ -1686,6 +1686,7 @@
}
}
indentNb++;
+ boolean isFirst = true;
for (SubCommand sc : c) {
if (sc.isHidden()) {
continue;
@@ -1694,8 +1695,13 @@
for (int i = 0; i < indentNb - sc.getName().length(); i++) {
buffer.append(" ");
}
+ if (!isFirst)
+ {
+ buffer.append(EOL);
+ }
buffer.append(sc.getDescription());
buffer.append(EOL);
+ isFirst = false;
}
}
--
Gitblit v1.10.0