checkArgSpec(mappingFile == null || mappingFile.exists(),
"The specified mapping file does not exist");
AbstractGeoGigOp<Optional<OSMReport>> command;
if (update) {
command = context.command(OSMUpdateOp.class).setRebase(rebase).setMessage(messageArg)
.setAPIUrl(OSMUtils.DEFAULT_API_ENDPOINT);
} else {
command = context.command(OSMDownloadOp.class).setBbox(bbox).setFilterFile(filterFile)
.setMessage(messageArg).setMappingFile(mappingFile)
.setOsmAPIUrl(OSMUtils.DEFAULT_API_ENDPOINT);