Repository: calcite-avatica Updated Branches: refs/heads/master 2a80eec82 -> 146d310f9 (forced update)
Update usage of JCommander after upgrading to 1.72 Signed-off-by: Kevin Risden <kris...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica/commit/146d310f Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica/tree/146d310f Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica/diff/146d310f Branch: refs/heads/master Commit: 146d310f99ba94909ca93fa9c0c2ebb593fc5591 Parents: bc8530e Author: Kevin Risden <kris...@apache.org> Authored: Sat Sep 22 22:29:18 2018 -0400 Committer: Kevin Risden <kris...@apache.org> Committed: Sat Sep 22 22:42:09 2018 -0400 ---------------------------------------------------------------------- .../org/apache/calcite/avatica/standalone/StandaloneServer.java | 3 ++- tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/146d310f/standalone-server/src/main/java/org/apache/calcite/avatica/standalone/StandaloneServer.java ---------------------------------------------------------------------- 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 0481f19..1b94c55 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 class StandaloneServer { 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()); http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/146d310f/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java ---------------------------------------------------------------------- diff --git a/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java b/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java index 6807354..4638f13 100644 --- a/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java +++ b/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java @@ -198,7 +198,8 @@ public class TestRunner implements Runnable { TestRunner runner = new TestRunner(); // Parse the args, sets it on runner. - new JCommander(runner, args); + JCommander jc = new JCommander(runner); + jc.parse(args); // Run the tests. runner.run();