mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Explicitly error out if no input image is given
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user