String doidFile = sync.getProperties().getProperty("doid.file");
sync.addRewriter(new GeneWikiEditor(root, ncboAPIKey, doidFile));
if (options.hasArgument("p")) {
sync.runForPages((String) options.valueOf("p"));
} else if (options.hasArgument("h")) {
sync.runChangesFromHoursAgo((Integer)options.valueOf("h"));
} else {
sync.run();
}
}
}