if (line.hasOption("retrieve")) {
String retrievePattern = settings.substitute(line.getOptionValue("retrieve"));
if (retrievePattern.indexOf("[") == -1) {
retrievePattern = retrievePattern + "/lib/[conf]/[artifact].[ext]";
}
ivy.retrieve(md.getModuleRevisionId(), retrievePattern, new RetrieveOptions()
.setConfs(confs).setCache(cacheManager).setSync(line.hasOption("sync"))
.setUseOrigin(line.hasOption("useOrigin")));
}
if (line.hasOption("cachepath")) {
outputCachePath(ivy, cache, md, confs, line.getOptionValue("cachepath",