Bug 6927 - CLI command has 3 args, not 2.
[asterisk/asterisk.git] / http.c
diff --git a/http.c b/http.c
index 8341d63..97eb676 100644 (file)
--- a/http.c
+++ b/http.c
@@ -632,7 +632,7 @@ static int handle_show_http(int fd, int argc, char *argv[])
 {
        char iabuf[INET_ADDRSTRLEN];
        struct ast_http_uri *urih;
-       if (argc != 2)
+       if (argc != 3)
                return RESULT_SHOWUSAGE;
        ast_cli(fd, "HTTP Server Status:\n");
        ast_cli(fd, "Prefix: %s\n", prefix);
@@ -659,11 +659,11 @@ int ast_http_reload(void)
 }
 
 static char show_http_help[] =
-"Usage: show http\n"
+"Usage: http show status\n"
 "       Shows status of internal HTTP engine\n";
 
 static struct ast_cli_entry http_cli[] = {
-       { { "show", "http", NULL }, handle_show_http,
+       { { "http", "show", "status", NULL }, handle_show_http,
          "Display HTTP server status", show_http_help },
 };