Update cli.cpp

This commit is contained in:
pottzman 2023-08-10 17:16:24 +10:00 committed by GitHub
parent 7c4bcdc847
commit de659846d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,8 +102,6 @@ int CLI::parseCommandLine(int argc, char* argv[], Options* options) {
options->numKeys = nKeys;
}
i++;
} else if (arg == "-u" || arg == "--upgrade") {
options->upgrade = true;
} else if (arg == "-b" || arg == "--bink") {
if (i == argc - 1) {
options->error = true;
@ -141,6 +139,8 @@ int CLI::parseCommandLine(int argc, char* argv[], Options* options) {
options->serial = serial_val;
}
i++;
} else if (arg == "-u" || arg == "--upgrade") {
options->upgrade = true;
} else if (arg == "-f" || arg == "--file") {
if (i == argc - 1) {
options->error = true;