From 2a80eec82499ac9eccedc03dc2eab80f6f813c8a Mon Sep 17 00:00:00 2001 From: Kevin Risden Date: Sat, 22 Sep 2018 22:29:18 -0400 Subject: [PATCH] Update usage of JCommander after upgrading to 1.72 Signed-off-by: Kevin Risden --- .../apache/calcite/avatica/standalone/StandaloneServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java b/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java index 0481f19e52..1b94c55f03 100644 --- a/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java +++ b/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java @@ -96,7 +96,8 @@ public void join() throws InterruptedException { public static void main(String[] args) { final StandaloneServer server = new StandaloneServer(); - JCommander jc = new JCommander(server, args); + JCommander jc = new JCommander(server); + jc.parse(args); if (server.help) { jc.usage(); Unsafe.systemExit(ExitCodes.USAGE.ordinal());