shell: printing command's help by shell engine
Removed printing command help from help handler. It is now realized by the shell engine. This change saves a lot of flash but still allows to print help in command handler with function shell_help_print. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
parent
5451ff2848
commit
e0be6a10b3
15 changed files with 41 additions and 346 deletions
|
@ -434,10 +434,7 @@ static int cmd_shell_stats(const struct shell *shell, size_t argc, char **argv)
|
|||
{
|
||||
ARG_UNUSED(argc);
|
||||
|
||||
if (shell_help_requested(shell)) {
|
||||
shell_help_print(shell);
|
||||
return 1;
|
||||
} else if (argc == 1) {
|
||||
if (argc == 1) {
|
||||
shell_help_print(shell);
|
||||
} else {
|
||||
shell_fprintf(shell, SHELL_ERROR, "%s:%s%s\n", argv[0],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue