Repository: flink Updated Branches: refs/heads/master a065ed091 -> dbbab0a90
[FLINK-3189] Fix argument parsing of CLI client INFO action This closes #1493 Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/a5b05566 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/a5b05566 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/a5b05566 Branch: refs/heads/master Commit: a5b05566ebeb1504da6579b21f424fbb45a56148 Parents: a065ed0 Author: mjsax <mj...@apache.org> Authored: Thu Jan 7 14:20:59 2016 +0100 Committer: Fabian Hueske <fhue...@apache.org> Committed: Tue Jan 12 22:21:05 2016 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/flink/client/cli/CliFrontendParser.java | 2 +- .../src/test/java/org/apache/flink/client/CliFrontendInfoTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/a5b05566/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java ---------------------------------------------------------------------- diff --git a/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java b/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java index 4e081fd..07d409e 100644 --- a/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java +++ b/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java @@ -339,7 +339,7 @@ public class CliFrontendParser { public static InfoOptions parseInfoCommand(String[] args) throws CliArgsException { try { PosixParser parser = new PosixParser(); - CommandLine line = parser.parse(INFO_OPTIONS, args, false); + CommandLine line = parser.parse(INFO_OPTIONS, args, true); return new InfoOptions(line); } catch (ParseException e) { http://git-wip-us.apache.org/repos/asf/flink/blob/a5b05566/flink-clients/src/test/java/org/apache/flink/client/CliFrontendInfoTest.java ---------------------------------------------------------------------- diff --git a/flink-clients/src/test/java/org/apache/flink/client/CliFrontendInfoTest.java b/flink-clients/src/test/java/org/apache/flink/client/CliFrontendInfoTest.java index c1df541..5cc90eb 100644 --- a/flink-clients/src/test/java/org/apache/flink/client/CliFrontendInfoTest.java +++ b/flink-clients/src/test/java/org/apache/flink/client/CliFrontendInfoTest.java @@ -61,7 +61,7 @@ public class CliFrontendInfoTest { replaceStdOut(); try { - String[] parameters = new String[] { CliFrontendTestUtils.getTestJarPath() }; + String[] parameters = new String[] { CliFrontendTestUtils.getTestJarPath(), "-f", "true"}; CliFrontend testFrontend = new CliFrontend(CliFrontendTestUtils.getConfigDir()); int retCode = testFrontend.info(parameters); assertTrue(retCode == 0);