X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4c2c499860d631b746e0db10a5b2ff9cd279c241..e6d983474bc4f1720b2ef4460041b423b02fc172:/nominatim/nominatim.c?ds=sidebyside diff --git a/nominatim/nominatim.c b/nominatim/nominatim.c index c9942539..72604bb6 100644 --- a/nominatim/nominatim.c +++ b/nominatim/nominatim.c @@ -202,6 +202,11 @@ int main(int argc, char *argv[]) } PQfinish(conn); + if (!index && !export && !import) + { + fprintf(stderr, "Please select index, export or import.\n"); + exit(EXIT_FAILURE); + } if (index) nominatim_index(0, 30, threads, conninfo, file); if (export) nominatim_export(0, 30, conninfo, file); if (import) nominatim_import(conninfo, tagsfile, file);