err.printf("Unrecognized command '%s'\n", list.get(0));
err.println();
printUsage(err);
return -1;
}
return command.run(in, out, err, list.subList(1, list.size()));
}
private void printUsage(PrintStream stream) {
stream.println("Usage: whirr COMMAND [ARGS]");
stream.println("where COMMAND may be one of:");