fix(cli): if both -s and -u options are set then unset both of them

This commit is contained in:
Masahiko AMANO 2022-12-25 02:55:57 +03:00
parent 02aeadf0f7
commit 094d76cb8c

View File

@ -329,6 +329,10 @@ int cli(int argc, char **argv) {
break; break;
} }
} }
if (opt_s && opt_u) {
opt_s = 0;
opt_u = 0;
}
FILE *config = fopen("./tfm-config", "r"); FILE *config = fopen("./tfm-config", "r");
if (config == NULL) { if (config == NULL) {
fprintf(stderr, ERROR("Config file not found\n")); fprintf(stderr, ERROR("Config file not found\n"));