flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fhue...@apache.org
Subject [1/3] flink git commit: [FLINK-3189] Fix argument parsing of CLI client INFO action
Date Tue, 12 Jan 2016 23:36:17 GMT
Repository: flink
Updated Branches:
  refs/heads/release-0.10 1d05dbe54 -> a726da6d1


[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/ab2f14a0
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/ab2f14a0
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/ab2f14a0

Branch: refs/heads/release-0.10
Commit: ab2f14a0c2a6a9e65b77d3293156bae15ec4fb55
Parents: 1d05dbe
Author: mjsax <mjsax@apache.org>
Authored: Thu Jan 7 14:20:59 2016 +0100
Committer: Fabian Hueske <fhueske@apache.org>
Committed: Wed Jan 13 00:25:13 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/ab2f14a0/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 028aead..12316f7 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
@@ -289,7 +289,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/ab2f14a0/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);


Mime
View raw message