fix output problem on -e -f options
This commit is contained in:
parent
0a24cdb088
commit
73c6e6d1e2
@ -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>
|
||||||
|
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user