cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject [2/2] git commit: promote HELP to be a real nodetool command to avoid error message patch by dbrosius reviewed by jbellis for CASSANDRA-4953
Date Wed, 14 Nov 2012 04:05:49 GMT
promote HELP to be a real nodetool command to avoid error message
patch by dbrosius reviewed by jbellis for CASSANDRA-4953


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

Branch: refs/heads/cassandra-1.2
Commit: be559a38b1887ca104baefdcdd98d5f19e886acc
Parents: 9dffa57
Author: Dave Brosius <dbrosius@apache.org>
Authored: Tue Nov 13 22:52:25 2012 -0500
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Tue Nov 13 22:52:25 2012 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/NodeCmd.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/be559a38/src/java/org/apache/cassandra/tools/NodeCmd.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/NodeCmd.java b/src/java/org/apache/cassandra/tools/NodeCmd.java
index ceedfec..11a78e2 100644
--- a/src/java/org/apache/cassandra/tools/NodeCmd.java
+++ b/src/java/org/apache/cassandra/tools/NodeCmd.java
@@ -113,6 +113,7 @@ public class NodeCmd
         GETENDPOINTS,
         GETSSTABLES,
         GOSSIPINFO,
+        HELP,
         INFO,
         INVALIDATEKEYCACHE,
         INVALIDATEROWCACHE,
@@ -994,6 +995,7 @@ public class NodeCmd
 
             switch (command)
             {
+                case HELP : printUsage(); break;
                 case RING :
                     if (arguments.length > 0) { nodeCmd.printRing(System.out, arguments[0]);
}
                     else                      { nodeCmd.printRing(System.out, null); };


Mime
View raw message