Refine help output

This commit is contained in:
Chris Beams 2020-04-25 11:27:28 +02:00
parent c1931d2fb2
commit 42e9bb1433
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73

View file

@ -65,16 +65,16 @@ public class CliMain {
var helpOpt = parser.accepts("help", "Print this help text") var helpOpt = parser.accepts("help", "Print this help text")
.forHelp(); .forHelp();
var hostOpt = parser.accepts("host", "Bisq node hostname or IP") var hostOpt = parser.accepts("host", "rpc server hostname or IP")
.withRequiredArg() .withRequiredArg()
.defaultsTo("localhost"); .defaultsTo("localhost");
var portOpt = parser.accepts("port", "Bisq node rpc port") var portOpt = parser.accepts("port", "rpc server port")
.withRequiredArg() .withRequiredArg()
.ofType(Integer.class) .ofType(Integer.class)
.defaultsTo(9998); .defaultsTo(9998);
var passwordOpt = parser.accepts("password", "Bisq node rpc server password") var passwordOpt = parser.accepts("password", "rpc server password")
.withRequiredArg(); .withRequiredArg();
try { try {
@ -160,8 +160,8 @@ public class CliMain {
stream.println(); stream.println();
stream.println("Method Descripiton"); stream.println("Method Descripiton");
stream.println("------- -----------"); stream.println("------- -----------");
stream.println("getversion Get Bisq node version"); stream.println("getversion Get server version");
stream.println("getbalance Get Bisq node wallet balance"); stream.println("getbalance Get server wallet balance");
stream.println(); stream.println();
} catch (IOException ex) { } catch (IOException ex) {
ex.printStackTrace(stream); ex.printStackTrace(stream);