*
* @param options the parameter set
* @return the built command
*/
static Log buildLog(ParameterSet options) {
Log command = new Log();
command.setLimit(parseInt(options, "limit", null));
command.setOffset(parseInt(options, "offset", null));
command.setPaths(Arrays.asList(options.getValuesArray("path")));
command.setSince(options.getFirstValue("since"));
command.setUntil(options.getFirstValue("until"));
command.setSinceTime(options.getFirstValue("sinceTime"));
command.setUntilTime(options.getFirstValue("untilTime"));
command.setPage(parseInt(options, "page", 0));
command.setElementsPerPage(parseInt(options, "show", 30));
command.setFirstParentOnly(Boolean.valueOf(options
.getFirstValue("firstParentOnly", "false")));
command.setCountChanges(Boolean.valueOf(options.getFirstValue("countChanges", "false")));
command.setReturnRange(Boolean.valueOf(options.getFirstValue("returnRange", "false")));
command.setSummary(Boolean.valueOf(options.getFirstValue("summary", "false")));
return command;
}