shellState.printLines(output.iterator(), !cl.hasOption(disablePaginationOpt.getOpt()));
}
// print help for every command on command line
for (String cmd : cl.getArgs()) {
final Command c = shellState.commandFactory.get(cmd);
if (c == null) {
shellState.getReader().printString(String.format("Unknown command \"%s\". Enter \"help\" for a list possible commands.%n", cmd));
} else {
c.printHelp(shellState, numColumns);
}
}
return 0;
}