From 500c59675e9c42351680d09071d9de3fef64460a Mon Sep 17 00:00:00 2001 From: Rick Cai Date: Tue, 21 Jan 2025 22:21:12 +0800 Subject: [PATCH] samples: subsys: shell: shell_module: Incorrect help message of sub_cmd1 Change sub_cmd1 help message from "help for cmd2" to "help for sub_cmd1". Signed-off-by: Rick Cai --- samples/subsys/shell/shell_module/src/test_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/subsys/shell/shell_module/src/test_module.c b/samples/subsys/shell/shell_module/src/test_module.c index 3d9b19751881..6723629d9300 100644 --- a/samples/subsys/shell/shell_module/src/test_module.c +++ b/samples/subsys/shell/shell_module/src/test_module.c @@ -42,5 +42,5 @@ static int sub_cmd1_handler(const struct shell *sh, size_t argc, char **argv) return 0; } -SHELL_SUBCMD_COND_ADD(1, (section_cmd, cmd1), sub_cmd1, NULL, "help for cmd2", +SHELL_SUBCMD_COND_ADD(1, (section_cmd, cmd1), sub_cmd1, NULL, "help for sub_cmd1", sub_cmd1_handler, 1, 0);