in src/main/java/com/google/devtools/build/remote/client/RemoteClient.java [481:495]
private static void doShowAction(ShowActionCommand options, RemoteClient client)
throws IOException {
if (options.file != null && options.actionDigest != null) {
System.err.println("Only one of --file or --action_digest should be specified");
System.exit(1);
}
if (options.file != null) {
client.printActionV1(getActionV1FromFile(options.file), options.limit);
} else if (options.actionDigest != null) {
client.printAction(options.actionDigest, options.limit);
} else {
System.err.println("Specify --file or --action_digest");
System.exit(1);
}
}