aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authoreliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 21:37:00 +0000
committereliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-18 21:37:00 +0000
commit3f19e17633dace58b4e896a18061b18e7ed1377a (patch)
tree026e2d032b90e1c30b698085465f60558394a35c /main
parentef8c2ce558770863dbc19c79d3ac644c47873872 (diff)
Merged revisions 195369 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r195369 | eliel | 2009-05-18 16:49:20 -0400 (Mon, 18 May 2009) | 8 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.0@195442 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/manager.c b/main/manager.c
index 34eded8ce..ccf95d735 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 <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:
@@ -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) {