mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
More consistent missing-input error messages
This commit is contained in:
@@ -507,7 +507,7 @@ int main(int argc, char *argv[]) {
|
||||
verboseOutputConfig(argc, argv);
|
||||
|
||||
if (argc == musl_optind) {
|
||||
usage.printAndExit("Please specify an input file (pass `-` to read from standard input)");
|
||||
usage.printAndExit("No input file specified (pass `-` to read from standard input)");
|
||||
} else if (argc != musl_optind + 1) {
|
||||
usage.printAndExit("More than one input file specified");
|
||||
}
|
||||
|
||||
@@ -898,7 +898,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
argv += musl_optind;
|
||||
if (!*argv) {
|
||||
usage.printAndExit("Please specify an input file (pass `-` to read from standard input)");
|
||||
usage.printAndExit("No input file specified (pass `-` to read from standard input)");
|
||||
}
|
||||
|
||||
if (outputFilename && argc != musl_optind + 1) {
|
||||
|
||||
@@ -862,7 +862,7 @@ int main(int argc, char *argv[]) {
|
||||
&& !localOptions.reverse) {
|
||||
processPalettes();
|
||||
} else {
|
||||
usage.printAndExit("No input image specified");
|
||||
usage.printAndExit("No input file specified (pass `-` to read from standard input)");
|
||||
}
|
||||
|
||||
requireZeroErrors();
|
||||
|
||||
@@ -424,9 +424,8 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
verboseOutputConfig(argc, argv);
|
||||
|
||||
// If no input files were specified, the user must have screwed up
|
||||
if (musl_optind == argc) {
|
||||
usage.printAndExit("Please specify an input file (pass `-` to read from standard input)");
|
||||
usage.printAndExit("No input file specified (pass `-` to read from standard input)");
|
||||
}
|
||||
|
||||
// Patch the size array depending on command-line options
|
||||
|
||||
Reference in New Issue
Block a user