From fe408202fbe058c72bcd13c224012718bb5331c6 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sun, 12 Jan 2025 23:56:47 -0500 Subject: [PATCH] ESP32-Console --- ESP32-Console/main/commands.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ESP32-Console/main/commands.h b/ESP32-Console/main/commands.h index 18834491f..47e2f8ad0 100644 --- a/ESP32-Console/main/commands.h +++ b/ESP32-Console/main/commands.h @@ -14,7 +14,7 @@ static void register_info(void); static int exec_set_gpio(); static void register_set_gpio(void); -struct arg_lit *verb, *help; +struct arg_lit *temp, *help; struct arg_end *end; static struct { struct arg_str *detail; @@ -23,6 +23,12 @@ static struct { struct arg_end *end; } info_args; static int exec_info_cmd (int argc, char **argv) { + + void *argtable[] = { + help = arg_litn(NULL, "help", 0, 1, "display this help"), + temp = arg_litn("t", "temp", 0, 1, "chip temperature"), + end = arg_end(20), + }; ESP_LOGW("CLI", "This is the Information Command."); int nerrors = arg_parse(argc, argv, (void**) &info_args);