From 1404def3f16710d36a874d819613f7f0c4e12ee7 Mon Sep 17 00:00:00 2001
From: Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Date: Thu, 07 Jul 2016 08:33:54 +0000
Subject: [PATCH] OPENDJ-2748 OPENDJ-1667 dsconfig --displayCommand should print a usable command and parse it correctly afterwards
---
opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java b/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java
index 2e5881f..388db59 100644
--- a/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java
+++ b/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConsoleApplication.java
@@ -281,6 +281,18 @@
}
/**
+ * Displays a message to the output stream without wrapping.
+ *
+ * @param msg
+ * The message.
+ */
+ public final void printlnNoWrap(final LocalizableMessage msg) {
+ if (!isQuiet()) {
+ out.println(msg);
+ }
+ }
+
+ /**
* Prints a progress bar on the same output stream line if not in quiet mode.
*
* <pre>
--
Gitblit v1.10.0