public void runInternal(GeogigCLI cli) {
final GeoGIG geogig = cli.getGeogig();
checkParameter(commits.size() > 0, "No commits specified.");
checkParameter(commits.size() < 2, "Too many commits specified.");
CherryPickOp cherryPick = geogig.command(CherryPickOp.class);
Optional<ObjectId> commitId;
commitId = geogig.command(RevParse.class).setRefSpec(commits.get(0)).call();
checkParameter(commitId.isPresent(), "Commit not found '%s'", commits.get(0));
cherryPick.setCommit(Suppliers.ofInstance(commitId.get()));