fix output problem on -e -f options

This commit is contained in:
Peter Hormanns 2016-09-23 12:29:02 +02:00
parent 0a24cdb088
commit 73c6e6d1e2
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<artifactId>hsadmin-cli</artifactId> <artifactId>hsadmin-cli</artifactId>
<version>1.0.2</version> <version>1.0.3</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>HSAdmin-Cli</name> <name>HSAdmin-Cli</name>

View File

@ -28,7 +28,7 @@ public class Main {
scriptClient.execute(new InputStreamReader(System.in)); scriptClient.execute(new InputStreamReader(System.in));
final String[] lines = formatter.format(scriptClient.getLastRpcResult()).split("\n"); final String[] lines = formatter.format(scriptClient.getLastRpcResult()).split("\n");
for (String ll : lines) { for (String ll : lines) {
console.println(ll); System.out.println(ll);
} }
} else { } else {
BufferedReader bufferedReader = null; BufferedReader bufferedReader = null;
@ -63,7 +63,7 @@ public class Main {
scriptClient.execute(expr); scriptClient.execute(expr);
final String[] lines = formatter.format(scriptClient.getLastRpcResult()).split("\n"); final String[] lines = formatter.format(scriptClient.getLastRpcResult()).split("\n");
for (String ll : lines) { for (String ll : lines) {
console.println(ll); System.out.println(ll);
} }
} }
if (cmdParser.isInteractive()) { if (cmdParser.isInteractive()) {