diff options
-rw-r--r-- | libcli.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -314,7 +314,7 @@ int cli_show_help(struct cli_def *cli, struct cli_command *c) if (p->command && p->callback && cli->privilege >= p->privilege && (p->mode == cli->mode || p->mode == MODE_ANY)) { - cli_error(cli, " %-20s %s", cli_command_name(cli, p), (p->help != NULL ? p->help : "")); + cli_error(cli, " %-35s %s", cli_command_name(cli, p), (p->help != NULL ? p->help : "")); } if (p->children) @@ -1031,6 +1031,8 @@ int cli_loop_read_next_char(struct cli_def *cli, struct cli_loop_ctx *ctx, unsig ctx->l = -1; return CLI_LOOP_CTRL_BREAK; } + if (n == 0) + return CLI_LOOP_CTRL_CONTINUE; } else { |