ref: 7377a142451ecea51eaa51b6047b5537f8926ef4
parent: e2136d60b2db6c714a0c7c84f38bbcad5c519b71
author: ISSOtm <eldredhabert0@gmail.com>
date: Mon Oct 3 13:17:19 EDT 2022
Improve RGBASM's "input files" error messages slightly
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -359,10 +359,10 @@
targetFileName[targetFileNameLen - 1] = '\0'; // Overwrite the last space
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();
} 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();
}