private String benchmarkClassName;
@Leftovers
private void setLeftovers(ImmutableList<String> leftovers) throws InvalidCommandException {
if (leftovers.isEmpty()) {
throw new InvalidCommandException("No benchmark class specified");
}
if (leftovers.size() > 1) {
throw new InvalidCommandException("Extra stuff, expected only class name: " + leftovers);
}
this.benchmarkClassName = leftovers.get(0);
}