shithub: rgbds

Download patch

ref: ef473de75aa6fc25bf142141b470f867ec6d009f
parent: 6b0cab32a67247be33fcfa8d509603fb52020920
author: ISSOtm <eldredhabert0@gmail.com>
date: Sat Apr 9 09:53:13 EDT 2022

Explicitly error out if no input image is given

--- a/src/gfx/main.cpp
+++ b/src/gfx/main.cpp
@@ -700,6 +700,10 @@
 		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;