summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorEliel C. Sardanons <eliels@gmail.com>2009-05-18 20:49:20 +0000
committerEliel C. Sardanons <eliels@gmail.com>2009-05-18 20:49:20 +0000
commite45d681d1509578e06649ed572e823fb7f4cb045 (patch)
tree6faec8c18bbadfc72b2d797192d97196f44591a8 /main
parent9e5da09a6be6724b1052a4dd22891b565958e86c (diff)
Fix the CLI command 'manager show command' documentation and functionality.
The CLI command 'manager show command' supports passing multiple action names in the same line, but it was not allowing that because of a incorrect check in the argumentes counter. Also the documentation was updated to show that this usage of the command is possible. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@195369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/manager.c b/main/manager.c
index b4067e914..d9cc3e846 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -608,7 +608,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 <actionname>\n"
+ "Usage: manager show command <actionname> [<actionname> [<actionname> [...]]]\n"
" Shows the detailed description for a specific Asterisk manager interface command.\n";
return NULL;
case CLI_GENERATE:
@@ -625,7 +625,7 @@ 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;
}