for (int i = 0; i < commands.size(); i++) {
if (command != null && !command.equals(commands.get(i))) {
continue;
}
try {
Command command = CommandHandler.loadCommand(commands.get(i));
log.info("Example usage: " + commands.get(i) + " "
+ command.getExampleUsage());
} catch (Exception e) {
log.error("Could not get help for command: " + commands.get(i),
e);
throw new CommandFailedException(-1);
}