*
* @param options the parameter set
* @return the built command
*/
static Diff buildDiff(ParameterSet options) {
Diff command = new Diff();
command.setOldRefSpec(options.getFirstValue("oldRefSpec", null));
command.setNewRefSpec(options.getFirstValue("newRefSpec", null));
command.setPathFilter(options.getFirstValue("pathFilter", null));
command.setShowGeometryChanges(Boolean.parseBoolean(options.getFirstValue(
"showGeometryChanges", "false")));
command.setPage(parseInt(options, "page", 0));
command.setElementsPerPage(parseInt(options, "show", 30));
return command;
}