[thin_rmap] Fail if no regions are supplied.

This commit is contained in:
Joe Thornber 2017-09-19 11:05:00 +01:00
parent f7d79339e8
commit 3790f2e79c

View File

@ -180,6 +180,12 @@ thin_rmap_cmd::run(int argc, char **argv)
exit(1);
}
if (!regions.size()) {
cerr << "No regions provided." << endl;
usage(cerr);
exit(1);
}
return rmap(argv[optind], regions);
}