Buggy code:
public class NodeCmd { private static final Pair < String , String > HOST_OPT = new Pair < String , String > ( "h" , "host" ) ; private static final Pair < String , String > PORT_OPT = new Pair < String , String > ( "p" , "port" ) ; private static final Pair < String , String > USERNAME_OPT = new Pair < String , String > ( "u" , "username" ) ; private static final Pair < String , String > PASSWORD_OPT = new Pair < String , String > ( "pw" , "password" ) ; private static final Pair < String , String > TAG_OPT = new Pair < String , String > ( "t" , "tag" ) ; private static final Pair < String , String > PRIMARY_RANGE_OPT = new Pair < String , String > ( "pr" , "partitioner-range" ) ; private static final int DEFAULT_PORT = 7199 ; private static NodeCmd . ToolOptions options = null ; private NodeProbe probe ; public NodeCmd ( NodeProbe probe ) { } private enum NodeCommand { CFHISTOGRAMS , CFSTATS , CLEANUP , CLEARSNAPSHOT , COMPACT , COMPACTIONSTATS , DECOMMISSION , DISABLEGOSSIP , DISABLETHRIFT , DRAIN , ENABLEGOSSIP , ENABLETHRIFT , FLUSH , GETCOMPACTIONTHRESHOLD , GETENDPOINTS , GOSSIPINFO , INFO , INVALIDATEKEYCACHE , INVALIDATEROWCACHE , JOIN , MOVE , NETSTATS , REFRESH , REMOVETOKEN , REPAIR , RING , SCRUB , SETCACHECAPACITY , SETCOMPACTIONTHRESHOLD , SETCOMPACTIONTHROUGHPUT , SNAPSHOT , STATUSTHRIFT , TPSTATS , UPGRADESSTABLES , VERSION , DESCRIBERING ; } private static void printUsage ( ) { HelpFormatter hf = new HelpFormatter ( ) ; StringBuilder header = new StringBuilder ( ) ; header . append ( "\nAvailable<seq2seq4repair_space>commands:\n" ) ; NodeCmd . addCmdHelp ( header , "ring" , "Print<seq2seq4repair_space>informations<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>token<seq2seq4repair_space>ring" ) ; NodeCmd . addCmdHelp ( header , "join" , "Join<seq2seq4repair_space>the<seq2seq4repair_space>ring" ) ; NodeCmd . addCmdHelp ( header , "info" , "Print<seq2seq4repair_space>node<seq2seq4repair_space>informations<seq2seq4repair_space>(uptime,<seq2seq4repair_space>load,<seq2seq4repair_space>...)" ) ; NodeCmd . addCmdHelp ( header , "cfstats" , "Print<seq2seq4repair_space>statistics<seq2seq4repair_space>on<seq2seq4repair_space>column<seq2seq4repair_space>families" ) ; NodeCmd . addCmdHelp ( header , "version" , "Print<seq2seq4repair_space>cassandra<seq2seq4repair_space>version" ) ; NodeCmd . addCmdHelp ( header , "tpstats" , "Print<seq2seq4repair_space>usage<seq2seq4repair_space>statistics<seq2seq4repair_space>of<seq2seq4repair_space>thread<seq2seq4repair_space>pools" ) ; NodeCmd . addCmdHelp ( header , "drain" , "Drain<seq2seq4repair_space>the<seq2seq4repair_space>node<seq2seq4repair_space>(stop<seq2seq4repair_space>accepting<seq2seq4repair_space>writes<seq2seq4repair_space>and<seq2seq4repair_space>flush<seq2seq4repair_space>all<seq2seq4repair_space>column<seq2seq4repair_space>families)" ) ; NodeCmd . addCmdHelp ( header , "decommission" , "Decommission<seq2seq4repair_space>the<seq2seq4repair_space>node" ) ; NodeCmd . addCmdHelp ( header , "compactionstats" , "Print<seq2seq4repair_space>statistics<seq2seq4repair_space>on<seq2seq4repair_space>compactions" ) ; NodeCmd . addCmdHelp ( header , "disablegossip" , "Disable<seq2seq4repair_space>gossip<seq2seq4repair_space>(effectively<seq2seq4repair_space>marking<seq2seq4repair_space>the<seq2seq4repair_space>node<seq2seq4repair_space>dead)" ) ; NodeCmd . addCmdHelp ( header , "enablegossip" , "Reenable<seq2seq4repair_space>gossip" ) ; NodeCmd . addCmdHelp ( header , "disablethrift" , "Disable<seq2seq4repair_space>thrift<seq2seq4repair_space>server" ) ; NodeCmd . addCmdHelp ( header , "enablethrift" , "Reenable<seq2seq4repair_space>thrift<seq2seq4repair_space>server" ) ; NodeCmd . addCmdHelp ( header , "statusthrift" , "Status<seq2seq4repair_space>of<seq2seq4repair_space>thrift<seq2seq4repair_space>server" ) ; NodeCmd . addCmdHelp ( header , "gossipinfo" , "Shows<seq2seq4repair_space>the<seq2seq4repair_space>gossip<seq2seq4repair_space>information<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>cluster" ) ; NodeCmd . addCmdHelp ( header , "netstats<seq2seq4repair_space>[host]" , "Print<seq2seq4repair_space>network<seq2seq4repair_space>information<seq2seq4repair_space>on<seq2seq4repair_space>provided<seq2seq4repair_space>host<seq2seq4repair_space>(connecting<seq2seq4repair_space>node<seq2seq4repair_space>by<seq2seq4repair_space>default)" ) ; NodeCmd . addCmdHelp ( header , "move<seq2seq4repair_space><new<seq2seq4repair_space>token>" , "Move<seq2seq4repair_space>node<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>token<seq2seq4repair_space>ring<seq2seq4repair_space>to<seq2seq4repair_space>a<seq2seq4repair_space>new<seq2seq4repair_space>token" ) ; NodeCmd . addCmdHelp ( header , "removetoken<seq2seq4repair_space>status|force|<token>" , "Show<seq2seq4repair_space>status<seq2seq4repair_space>of<seq2seq4repair_space>current<seq2seq4repair_space>token<seq2seq4repair_space>removal,<seq2seq4repair_space>force<seq2seq4repair_space>completion<seq2seq4repair_space>of<seq2seq4repair_space>pending<seq2seq4repair_space>removal<seq2seq4repair_space>or<seq2seq4repair_space>remove<seq2seq4repair_space>providen<seq2seq4repair_space>token" ) ; NodeCmd . addCmdHelp ( header , "setcompactionthroughput<seq2seq4repair_space><value_in_mb>" , "Set<seq2seq4repair_space>the<seq2seq4repair_space>MB//s<seq2seq4repair_space>throughput<seq2seq4repair_space>cap<seq2seq4repair_space>for<seq2seq4repair_space>compaction<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>system,<seq2seq4repair_space>or<seq2seq4repair_space>0<seq2seq4repair_space>to<seq2seq4repair_space>disable<seq2seq4repair_space>throttling." ) ; NodeCmd . addCmdHelp ( header , "describering<seq2seq4repair_space>[keyspace]" , "Shows<seq2seq4repair_space>the<seq2seq4repair_space>token<seq2seq4repair_space>ranges<seq2seq4repair_space>info<seq2seq4repair_space>of<seq2seq4repair_space>a<seq2seq4repair_space>given<seq2seq4repair_space>keyspace." ) ; NodeCmd . addCmdHelp ( header , "snapshot<seq2seq4repair_space>[keyspaces...]<seq2seq4repair_space>-t<seq2seq4repair_space>[snapshotName]" , "Take<seq2seq4repair_space>a<seq2seq4repair_space>snapshot<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>specified<seq2seq4repair_space>keyspaces<seq2seq4repair_space>using<seq2seq4repair_space>optional<seq2seq4repair_space>name<seq2seq4repair_space>snapshotName" ) ; NodeCmd . addCmdHelp ( header , "clearsnapshot<seq2seq4repair_space>[keyspaces...]<seq2seq4repair_space>-t<seq2seq4repair_space>[snapshotName]" , "Remove<seq2seq4repair_space>snapshots<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>specified<seq2seq4repair_space>keyspaces.<seq2seq4repair_space>Either<seq2seq4repair_space>remove<seq2seq4repair_space>all<seq2seq4repair_space>snapshots<seq2seq4repair_space>or<seq2seq4repair_space>remove<seq2seq4repair_space>the<seq2seq4repair_space>snapshots<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>given<seq2seq4repair_space>name." ) ; NodeCmd . addCmdHelp ( header , "flush<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Flush<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; NodeCmd . addCmdHelp ( header , "repair<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Repair<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family<seq2seq4repair_space>(use<seq2seq4repair_space>-rp<seq2seq4repair_space>to<seq2seq4repair_space>repair<seq2seq4repair_space>only<seq2seq4repair_space>the<seq2seq4repair_space>first<seq2seq4repair_space>range<seq2seq4repair_space>returned<seq2seq4repair_space>by<seq2seq4repair_space>the<seq2seq4repair_space>partitioner)" ) ; NodeCmd . addCmdHelp ( header , "cleanup<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Run<seq2seq4repair_space>cleanup<seq2seq4repair_space>on<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; NodeCmd . addCmdHelp ( header , "compact<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Force<seq2seq4repair_space>a<seq2seq4repair_space>(major)<seq2seq4repair_space>compaction<seq2seq4repair_space>on<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; NodeCmd . addCmdHelp ( header , "scrub<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Scrub<seq2seq4repair_space>(rebuild<seq2seq4repair_space>sstables<seq2seq4repair_space>for)<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; <START_BUG> NodeCmd . addCmdHelp ( header , "upgradesstables<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Scrub<seq2seq4repair_space>(rebuild<seq2seq4repair_space>sstables<seq2seq4repair_space>for)<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; <END_BUG> NodeCmd . addCmdHelp ( header , "invalidatekeycache<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Invalidate<seq2seq4repair_space>the<seq2seq4repair_space>key<seq2seq4repair_space>cache<seq2seq4repair_space>of<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; NodeCmd . addCmdHelp ( header , "invalidaterowcache<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Invalidate<seq2seq4repair_space>the<seq2seq4repair_space>key<seq2seq4repair_space>cache<seq2seq4repair_space>of<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; NodeCmd . addCmdHelp ( header , "getcompactionthreshold<seq2seq4repair_space><keyspace><seq2seq4repair_space><cfname>" , "Print<seq2seq4repair_space>min<seq2seq4repair_space>and<seq2seq4repair_space>max<seq2seq4repair_space>compaction<seq2seq4repair_space>thresholds<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>given<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; NodeCmd . addCmdHelp ( header , "cfhistograms<seq2seq4repair_space><keyspace><seq2seq4repair_space><cfname>" , "Print<seq2seq4repair_space>statistic<seq2seq4repair_space>histograms<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>given<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; NodeCmd . addCmdHelp ( header , "refresh<seq2seq4repair_space><keyspace><seq2seq4repair_space><cf-name>" , "Load<seq2seq4repair_space>newly<seq2seq4repair_space>placed<seq2seq4repair_space>SSTables<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>system<seq2seq4repair_space>without<seq2seq4repair_space>restart." ) ; NodeCmd . addCmdHelp ( header , "getendpoints<seq2seq4repair_space><keyspace><seq2seq4repair_space><cf><seq2seq4repair_space><key>" , "Print<seq2seq4repair_space>the<seq2seq4repair_space>end<seq2seq4repair_space>points<seq2seq4repair_space>that<seq2seq4repair_space>owns<seq2seq4repair_space>the<seq2seq4repair_space>key" ) ; NodeCmd . addCmdHelp ( header , "setcachecapacity<seq2seq4repair_space><keyspace><seq2seq4repair_space><cfname><seq2seq4repair_space><keycachecapacity><seq2seq4repair_space><rowcachecapacity>" , "Set<seq2seq4repair_space>the<seq2seq4repair_space>key<seq2seq4repair_space>and<seq2seq4repair_space>row<seq2seq4repair_space>cache<seq2seq4repair_space>capacities<seq2seq4repair_space>of<seq2seq4repair_space>a<seq2seq4repair_space>given<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; NodeCmd . addCmdHelp ( header , "setcompactionthreshold<seq2seq4repair_space><keyspace><seq2seq4repair_space><cfname><seq2seq4repair_space><minthreshold><seq2seq4repair_space><maxthreshold>" , "Set<seq2seq4repair_space>the<seq2seq4repair_space>min<seq2seq4repair_space>and<seq2seq4repair_space>max<seq2seq4repair_space>compaction<seq2seq4repair_space>thresholds<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>given<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ; String usage = String . format ( "java<seq2seq4repair_space>%s<seq2seq4repair_space>--host<seq2seq4repair_space><arg><seq2seq4repair_space><command>%n" , NodeCmd . class . getName ( ) ) ; hf . printHelp ( usage , "" , NodeCmd . options , "" ) ; System . out . println ( header . toString ( ) ) ; } private static void addCmdHelp ( StringBuilder sb , String cmd , String description ) { } public void printRing ( PrintStream outs ) { } public void printThreadPoolStats ( PrintStream outs ) { } public void printInfo ( PrintStream outs ) { } public void printReleaseVersion ( PrintStream outs ) { } public void printNetworkStats ( final InetAddress addr , PrintStream outs ) { } public void printCompactionStats ( PrintStream outs ) { } public void printColumnFamilyStats ( PrintStream outs ) { } public void printRemovalStatus ( PrintStream outs ) { } private void printCfHistograms ( String keySpace , String columnFamily , PrintStream output ) { } private void printEndPoints ( String keySpace , String cf , String key , PrintStream output ) { } private void printIsThriftServerRunning ( PrintStream outs ) { } public static void main ( String [ ] args ) throws IOException , InterruptedException , ConfigurationException , ParseException { } private void printDescribeRing ( String keyspaceName , PrintStream out ) { } private void printGossipInfo ( PrintStream out ) { } private static void badUse ( String useStr ) { } private static void err ( Exception e , String errStr ) { } private static void complainNonzeroArgs ( String [ ] args , NodeCmd . NodeCommand cmd ) { } private static void handleSnapshots ( NodeCmd . NodeCommand nc , String tag , String [ ] cmdArgs , NodeProbe probe ) throws IOException , InterruptedException { } private static void optionalKSandCFs ( NodeCmd . NodeCommand nc , NodeCmd . ToolCommandLine cmd , String [ ] cmdArgs , NodeProbe probe ) throws IOException , InterruptedException { }

Fix:
NodeCmd . addCmdHelp ( header , "upgradesstables<seq2seq4repair_space>[keyspace]<seq2seq4repair_space>[cfnames]" , "Upgrade<seq2seq4repair_space>sstables<seq2seq4repair_space>for<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>column<seq2seq4repair_space>family" ) ;