Update rexm.c

This commit is contained in:
Ray
2025-10-02 19:25:45 +02:00
parent 02b3e44f88
commit 7b5c597da5

View File

@@ -222,6 +222,7 @@ int main(int argc, char *argv[])
char exRename[64] = { 0 }; // Example re-name, without extension char exRename[64] = { 0 }; // Example re-name, without extension
int opCode = OP_NONE; // Operation code: 0-None(Help), 1-Create, 2-Add, 3-Rename, 4-Remove int opCode = OP_NONE; // Operation code: 0-None(Help), 1-Create, 2-Add, 3-Rename, 4-Remove
bool verbose = false; // Flag for verbose log info
/* /*
// Testing code for UpdateSourceMetadata() // Testing code for UpdateSourceMetadata()
@@ -416,6 +417,12 @@ int main(int argc, char *argv[])
UnloadFileText(exColInfo); UnloadFileText(exColInfo);
} }
} }
// Check for verbose log mode request
for (int i = 1; i < argc; i++)
{
if ((strcmp(argv[i], "-v") == 0) || (strcmp(argv[i], "--verbose") == 0)) verbose = true;
}
} }
switch (opCode) switch (opCode)
@@ -1907,8 +1914,7 @@ static int ParseExampleInfoLine(const char *line, rlExampleInfo *entry)
int tokenCount = 0; int tokenCount = 0;
char **tokens = TextSplit(line, ';', &tokenCount); char **tokens = TextSplit(line, ';', &tokenCount);
if (tokenCount != 9) if (tokenCount != 9) LOG("REXM: WARNING: Example collection line contains invalid number of tokens: %i\n", tokenCount);
LOG("REXM: WARNING: Example collection line contains invalid number of tokens: %i\n", tokenCount);
// Get category and name // Get category and name
strcpy(entry->category, tokens[0]); strcpy(entry->category, tokens[0]);