@Override
public int parseArguments(Parameters params) throws CmdLineException {
String src = params.getParameter(0);
AbstractProject project = projectFinder.findProject(src);
if (project == null) {
throw new CmdLineException(
owner,
String.format("Project does not exist: %s", src));
}
if (!(project instanceof MasterProject)) {
throw new CmdLineException(
owner,
String.format("Project is not a Master Project: %s", src));
}
setter.addValue((MasterProject) project);
return 1;