parquet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject parquet-mr git commit: PARQUET-584 show proper command usage when there's no arguments
Date Tue, 19 Apr 2016 15:26:52 GMT
Repository: parquet-mr
Updated Branches:
  refs/heads/master ac62c1c29 -> dc08bb8ea


PARQUET-584 show proper command usage when there's no arguments

Author: Kaufman Ng <kaufman@cloudera.com>
Author: Ryan Blue <blue@apache.org>

Closes #336 from coughman/master and squashes the following commits:

cd459f9 [Kaufman Ng] PARQUET-584: fixed formatting
1d1e965 [Kaufman Ng] Merge branch 'master' of https://github.com/coughman/incubator-parquet-mr
25b6d86 [Kaufman Ng] Merge branch 'master' of https://github.com/apache/parquet-mr
bee66e5 [Ryan Blue] PARQUET-384: Add dictionary filtering.
283f7c7 [Kaufman Ng] show proper command usage when there's no arguments


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

Branch: refs/heads/master
Commit: dc08bb8ea6cdf01188f6699559e779e6cc296287
Parents: ac62c1c
Author: Kaufman Ng <kaufman@cloudera.com>
Authored: Tue Apr 19 08:26:34 2016 -0700
Committer: Ryan Blue <blue@apache.org>
Committed: Tue Apr 19 08:26:34 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/parquet/tools/Main.java          | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/parquet-mr/blob/dc08bb8e/parquet-tools/src/main/java/org/apache/parquet/tools/Main.java
----------------------------------------------------------------------
diff --git a/parquet-tools/src/main/java/org/apache/parquet/tools/Main.java b/parquet-tools/src/main/java/org/apache/parquet/tools/Main.java
index 931eb2b..d41ae57 100644
--- a/parquet-tools/src/main/java/org/apache/parquet/tools/Main.java
+++ b/parquet-tools/src/main/java/org/apache/parquet/tools/Main.java
@@ -150,9 +150,10 @@ public class Main {
     }
 
     if (usage) {
-      if (name != null && command != null) {
-        showUsage(name, command);
-      } else {
+      if (name == null && command == null) {
+        showUsage();
+      }
+      else {
         showUsage(name, command);
       }
     }


Mime
View raw message