[asterisk-commits] eliel: trunk r195369 - /trunk/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 18 15:49:23 CDT 2009


Author: eliel
Date: Mon May 18 15:49:20 2009
New Revision: 195369

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195369
Log:
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.


Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/manager.c?view=diff&rev=195369&r1=195368&r2=195369
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Mon May 18 15:49:20 2009
@@ -608,7 +608,7 @@
 	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 @@
 		return ret;
 	}
 	authority = ast_str_alloca(80);
-	if (a->argc != 4) {
+	if (a->argc < 4) {
 		return CLI_SHOWUSAGE;
 	}
 




More information about the asterisk-commits mailing list