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:
Jakub Rzeszutko 2018-11-26 16:43:27 +01:00 committed by Carles Cufí
commit e0be6a10b3
15 changed files with 41 additions and 346 deletions

View file

@ -441,7 +441,7 @@ SHELL_CREATE_STATIC_SUBCMD_SET(sub_log_stat)
static int cmd_log(const struct shell *shell, size_t argc, char **argv)
{
if ((argc == 1) || shell_help_requested(shell)) {
if (argc == 1) {
shell_help_print(shell);
return 0;
}