Improve RGBASM's "input files" error messages slightly

This commit is contained in:
ISSOtm
2022-10-03 17:17:19 +02:00
parent e2136d60b2
commit 7377a14245

View File

@@ -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();
} }