Show conventional colored "error:"/"FATAL:" for CLI option errors

This commit is contained in:
Rangi
2025-10-23 12:38:43 -04:00
parent f065243cd2
commit efb5a88edb
7 changed files with 31 additions and 25 deletions

View File

@@ -7,6 +7,7 @@
#include <string>
#include "extern/getopt.hpp" // option
#include "usage.hpp"
void cli_ParseArgs(
int argc,
@@ -14,7 +15,7 @@ void cli_ParseArgs(
char const *shortOpts,
option const *longOpts,
void (*parseArg)(int, char *),
void (*fatal)(char const *, ...)
Usage usage
);
#endif // RGBDS_CLI_HPP