From 513a0da85cb205b85a2e4578cc91c9beb2f03313 Mon Sep 17 00:00:00 2001 From: LokLiang Date: Tue, 25 Feb 2025 14:10:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E9=87=8D=E5=A4=8D=E8=A1=A5?= =?UTF-8?q?=E5=85=A8=20help=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/system/source/shell/sh.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/system/source/shell/sh.c b/components/system/source/shell/sh.c index edabf34..23e3921 100755 --- a/components/system/source/shell/sh.c +++ b/components/system/source/shell/sh.c @@ -2955,7 +2955,10 @@ SH_CMD_FN(_cmd_print_help) SH_CMD_CP_FN(_cmd_print_help_param) { - _sh_completion_cmd(sh_hdl, argc, argv, 0); + if (argc + flag != 2 || (argc >= 1 && (strcmp(argv[0], "help") != 0))) + { + _sh_completion_cmd(sh_hdl, argc, argv, 0); + } } SH_CMD_FN(_cmd_echo_on)