mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Make quote marks consistent in error/warning messages (#1791)
- "Double quotes" for strings (filenames, section names, CLI option arguments, etc) - 'Single quotes' for characters and CLI option flags - `Backticks` for keywords and identifiers (symbol names, charmap names, etc) CLI option flags also have their leading dashes
This commit is contained in:
@@ -121,7 +121,7 @@ void opt_Parse(char const *s) {
|
||||
}
|
||||
|
||||
if (s[0] == '\0') {
|
||||
error("Missing argument to option 'r'");
|
||||
error("Missing argument for option 'r'");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -129,9 +129,9 @@ void opt_Parse(char const *s) {
|
||||
unsigned long maxRecursionDepth = strtoul(s, &endptr, 10);
|
||||
|
||||
if (*endptr != '\0') {
|
||||
error("Invalid argument to option 'r' (\"%s\")", s);
|
||||
error("Invalid argument for option 'r' (\"%s\")", s);
|
||||
} else if (errno == ERANGE) {
|
||||
error("Argument to 'r' is out of range (\"%s\")", s);
|
||||
error("Argument for option 'r' is out of range (\"%s\")", s);
|
||||
} else {
|
||||
opt_R(maxRecursionDepth);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user