Explicitly error out if no input image is given

This commit is contained in:
ISSOtm
2022-04-09 13:53:13 +02:00
committed by Eldred Habert
parent 6b0cab32a6
commit ef473de75a

View File

@@ -700,6 +700,10 @@ int main(int argc, char *argv[]) {
fputs("Ready.\n", stderr); fputs("Ready.\n", stderr);
} }
if (options.input.empty()) {
fatal("No input image specified");
}
// Do not do anything if option parsing went wrong // Do not do anything if option parsing went wrong
if (nbErrors) { if (nbErrors) {
return 0; return 0;