Skip to content

Commit

Permalink
change arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 5, 2024
1 parent 19b01f3 commit 074e0fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static void usage(const char *prog) {
" -L ADDR - listening address for mqtts communication, default: '%s'\n"
" -C CA - ca content or file path for mqtts communication, default: '%s'\n"
" -c CERT - cert content or file path for mqtts communication, default: '%s'\n"
" -K KEY - cert key content or file path for mqtts communication, default: '%s'\n"
" -k KEY - cert key content or file path for mqtts communication, default: '%s'\n"
" -e 0|1 - mqtts enable, default: 1\n"
" -v LEVEL - debug level, from 0 to 4, default: %d\n",
MG_VERSION, prog, MQTT_LISTEN_ADDR, MQTTS_LISTEN_ADDR, CA, CERT, KEY, MG_LL_INFO);
Expand Down Expand Up @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) {
opts.mqtts_ca = argv[++i];
} else if (strcmp(argv[i], "-c") == 0) {
opts.mqtts_cert = argv[++i];
} else if (strcmp(argv[i], "-K") == 0) {
} else if (strcmp(argv[i], "-k") == 0) {
opts.mqtts_certkey = argv[++i];
} else if (strcmp(argv[i], "-e") == 0) {
opts.mqtts_enable = atoi(argv[++i]);
Expand Down

0 comments on commit 074e0fb

Please sign in to comment.