sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hshreedha...@apache.org
Subject git commit: SQOOP-1212. Do not print usage on wrong command line.
Date Thu, 10 Jul 2014 21:31:38 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk c0831f20c -> efda8ddca


SQOOP-1212. Do not print usage on wrong command line.

(Jarcec via Hari)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/efda8ddc
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/efda8ddc
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/efda8ddc

Branch: refs/heads/trunk
Commit: efda8ddca4f2ae52d5a1c999e193a5063965a0fc
Parents: c0831f2
Author: Hari Shreedharan <harishreedharan@gmail.com>
Authored: Thu Jul 10 14:30:41 2014 -0700
Committer: Hari Shreedharan <harishreedharan@gmail.com>
Committed: Thu Jul 10 14:30:41 2014 -0700

----------------------------------------------------------------------
 src/java/org/apache/sqoop/Sqoop.java | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/efda8ddc/src/java/org/apache/sqoop/Sqoop.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/Sqoop.java b/src/java/org/apache/sqoop/Sqoop.java
index 2addd62..93736a6 100644
--- a/src/java/org/apache/sqoop/Sqoop.java
+++ b/src/java/org/apache/sqoop/Sqoop.java
@@ -137,10 +137,6 @@ public class Sqoop extends Configured implements Tool {
       LOG.debug(e.getMessage(), e);
       // Print exception message.
       System.err.println(e.getMessage());
-      // Print the tool usage message and exit.
-      ToolOptions toolOpts = new ToolOptions();
-      tool.configureOptions(toolOpts);
-      tool.printHelp(toolOpts);
       return 1; // Exit on exception here.
     }
 


Mime
View raw message