Beispiel #1
0
 /**
  * Returns the help text for a particular command. For this command to work properly, the command
  * should be supported by one of the command handlers enabled in the client and the command
  * handler who supports this command should also include a help text for that command.
  *
  * @see #addCommandHandler(CommandHandler), {@link CommandHandler}
  * @param cmd The command for which help needed.
  * @return The help text for the specified command, null if the command is not found in any of the
  *     command handlers.
  */
 public String getCommandHelp(String cmd) {
   for (CommandHandler handler : cmdHandlers) {
     if (handler.supportCommand(cmd)) return handler.getHelp(cmd);
   }
   return null;
 }