*
* @param options the parameter set
* @return the built command
*/
static GetCommitGraph buildGetCommitGraph(ParameterSet options) {
GetCommitGraph command = new GetCommitGraph();
command.setDepth(parseInt(options, "depth", 0));
command.setCommitId(options.getFirstValue("commitId", ObjectId.NULL.toString()));
command.setPage(parseInt(options, "page", 0));
command.setElementsPerPage(parseInt(options, "show", 30));
return command;
}