mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 11:15:39 +00:00
Explicitly error out if no input image is given
This commit is contained in:
1 parent
6b0cab32a6
commit
ef473de75a
1 file changed
+4
@@ -700,6 +700,10 @@ int main(int argc, char *argv[]) {
|
||||
fputs("Ready.\n", stderr);
|
||||
}
|
||||
|
||||
if (options.input.empty()) {
|
||||
fatal("No input image specified");
|
||||
}
|
||||
|
||||
// Do not do anything if option parsing went wrong
|
||||
if (nbErrors) {
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user