Only allow one input .mbtiles because multiple really won't work

This commit is contained in:
Eric Fischer 2015-08-20 16:15:09 -07:00
parent 06ca52526d
commit 514da467e1

View File

@ -309,7 +309,7 @@ void decode(char *fname, char *map, struct pool **file_keys, char ***layernames,
} }
void usage(char **argv) { void usage(char **argv) {
fprintf(stderr, "Usage: %s [-f] [-c joins.csv] -o new.mbtiles source.mbtiles ...\n", argv[0]); fprintf(stderr, "Usage: %s [-f] [-c joins.csv] -o new.mbtiles source.mbtiles\n", argv[0]);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
@ -341,7 +341,7 @@ int main(int argc, char **argv) {
} }
} }
if (argc - optind < 1 || outfile == NULL) { if (argc - optind != 1 || outfile == NULL) {
usage(argv); usage(argv);
} }