Update cli.cpp

This commit is contained in:
pottzman 2023-09-02 23:51:08 +10:00 committed by GitHub
parent 104bdb19e3
commit 2703e17f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,9 +165,10 @@ int CLI::parseCommandLine(int argc, char* argv[], Options* options) {
} else if (arg == "-m" || arg == "--mode") {
std::string mode = argv[i+1];
char *p = &mode[0];
for (int i = 0; *p; i++) {
*p+i = toupper((unsigned char)*p+i);
for (; *p; p++) {
*p = toupper((unsigned char)*p);
}
p = &mode[0];
if (strcmp(p, "WINDOWS") == 0) {
options->activationMode = WINDOWS;
} else if (strcmp(p, "OFFICEXP") == 0) {