mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 22:04:32 +00:00
Correct option letter in error message
This commit is contained in:
+1
-1
@@ -217,7 +217,7 @@ static void parseArg(int ch, char *arg) {
|
||||
case 'd':
|
||||
options.bitDepth = readNumber(argPtr, "Bit depth", 2);
|
||||
if (*argPtr != '\0') {
|
||||
error("Bit depth ('-b') argument must be a valid number, not \"%s\"", arg);
|
||||
error("Bit depth ('-d') argument must be a valid number, not \"%s\"", arg);
|
||||
} else if (options.bitDepth != 1 && options.bitDepth != 2) {
|
||||
error("Bit depth must be 1 or 2, not %" PRIu8, options.bitDepth);
|
||||
options.bitDepth = 2;
|
||||
|
||||
Reference in New Issue
Block a user