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)