mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Improve RGBASM's "input files" error messages slightly
This commit is contained in:
@@ -359,10 +359,10 @@ int main(int argc, char *argv[])
|
|||||||
targetFileName[targetFileNameLen - 1] = '\0'; // Overwrite the last space
|
targetFileName[targetFileNameLen - 1] = '\0'; // Overwrite the last space
|
||||||
|
|
||||||
if (argc == musl_optind) {
|
if (argc == musl_optind) {
|
||||||
fputs("FATAL: No input files\n", stderr);
|
fputs("FATAL: Please specify an input file (pass `-` to read from standard input)\n", stderr);
|
||||||
print_usage();
|
print_usage();
|
||||||
} else if (argc != musl_optind + 1) {
|
} else if (argc != musl_optind + 1) {
|
||||||
fputs("FATAL: More than one input file given\n", stderr);
|
fputs("FATAL: More than one input file specified\n", stderr);
|
||||||
print_usage();
|
print_usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user