Updated Branches: refs/heads/sqoop2 869cfd9f8 -> 277429ed1 SQOOP-1039: Sqoop2: show version with no args should show something (Mengwei Ding via Jarek Jarcec Cecho) Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/277429ed Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/277429ed Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/277429ed Branch: refs/heads/sqoop2 Commit: 277429ed110b6499ecf7d939718ff1d1c1b004b7 Parents: 869cfd9 Author: Jarek Jarcec Cecho Authored: Fri May 24 00:59:46 2013 -0700 Committer: Jarek Jarcec Cecho Committed: Fri May 24 00:59:46 2013 -0700 ---------------------------------------------------------------------- .../sqoop/client/shell/ShowVersionFunction.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/277429ed/client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java ---------------------------------------------------------------------- diff --git a/client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java b/client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java index 1038116..8e17f67 100644 --- a/client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java +++ b/client/src/main/java/org/apache/sqoop/client/shell/ShowVersionFunction.java @@ -82,6 +82,11 @@ public class ShowVersionFunction extends SqoopFunction { private void showVersion(boolean server, boolean client, boolean protocol) { + // If no option has been given, print out client version as default + if (!client && !server && !protocol) { + client = true; + } + // Print out client string if needed if (client) { printlnResource(Constants.RES_SHOW_PROMPT_VERSION_CLIENT_SERVER,