[
https://issues.apache.org/jira/browse/FLINK-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15030971#comment-15030971
]
ASF GitHub Bot commented on FLINK-3077:
---------------------------------------
Github user rmetzger commented on a diff in the pull request:
https://github.com/apache/flink/pull/1418#discussion_r46093042
--- Diff:
flink-clients/src/main/java/org/apache/flink/client/CliFrontend.java ---
@@ -1000,11 +1001,17 @@ else if (action.equals("-h") ||
action.equals("--help")) {
CliFrontendParser.printHelp();
return 0;
}
+ else if (action.equals("-v") || action.equals("--version")) {
+ System.out.println("Version: " +
VersionUtils.getFlinkVersion() + ", Commit ID: " + VersionUtils.getCommitId());
+ return 0;
+ }
else {
System.out.printf("\"%s\" is not a valid action.\n",
action);
System.out.println();
System.out.println("Valid actions are \"run\",
\"list\", \"info\", or \"cancel\".");
System.out.println();
+ System.out.println("Specify the version option (-v or
--version) to print flink version.");
--- End diff --
Can you write "Flink" uppercase here?
> Add "version" command to CliFrontend for showing the version of the
> installation
> --------------------------------------------------------------------------------
>
> Key: FLINK-3077
> URL: https://issues.apache.org/jira/browse/FLINK-3077
> Project: Flink
> Issue Type: Improvement
> Components: Command-line client
> Reporter: Robert Metzger
> Assignee: Sachin Goel
> Fix For: 1.0.0
>
>
> I have the bin directory of Flink in my $PATH variable, so I can just do
> "flink run" on the command line for executing stuff.
> However, I have multiple Flink versions locally and its hard to find out
> which installation the bash is picking in the end.
> adding a simple "version" command will resolve that issue and I consider it
> helpful in general.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)