Preconditions.checkArgument(argv.length == 2,
"usage: multigrepspec(name, grepspecfile)");
String name = argv[0];
String fname = argv[1];
MultiGrepReporterBuilder mgrb =
new MultiGrepReporterBuilder(name, fname);
Collection<MultiGrepReporterSink<String>> sinks;
try {
sinks = mgrb.load();
} catch (IOException e) {
throw new IllegalArgumentException(
"Failed to create multigrep report named " + name
+ " with spec from file " + fname + ": " + e);
}