diff --git a/main/manager.c b/main/manager.c index 34eded8ce2..ccf95d7359 100644 --- a/main/manager.c +++ b/main/manager.c @@ -517,7 +517,7 @@ static char *handle_showmancmd(struct ast_cli_entry *e, int cmd, struct ast_cli_ case CLI_INIT: e->command = "manager show command"; e->usage = - "Usage: manager show command \n" + "Usage: manager show command [ [ [...]]]\n" " Shows the detailed description for a specific Asterisk manager interface command.\n"; return NULL; case CLI_GENERATE: @@ -534,8 +534,9 @@ static char *handle_showmancmd(struct ast_cli_entry *e, int cmd, struct ast_cli_ return ret; } authority = ast_str_alloca(80); - if (a->argc != 4) + if (a->argc < 4) { return CLI_SHOWUSAGE; + } AST_RWLIST_RDLOCK(&actions); AST_RWLIST_TRAVERSE(&actions, cur, list) {