You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2012/11/14 05:05:49 UTC

[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

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 <db...@apache.org>
Authored: Tue Nov 13 22:52:25 2012 -0500
Committer: Dave Brosius <db...@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); };