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
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:
return ret;
}
authority = ast_str_alloca(80);
- if (a->argc != 4) {
+ if (a->argc < 4) {
return CLI_SHOWUSAGE;
}