diff options
author | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-28 23:32:14 +0000 |
---|---|---|
committer | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-28 23:32:14 +0000 |
commit | b6fa2c3b98f454c4b179f7e365c519b45d15bbd4 (patch) | |
tree | d5167b9db2e6c55e56def0e52038799c477d3e3d /main/manager.c | |
parent | 74e9c236bd6246f61bed0397adcf87adad399e2e (diff) |
Merge the cli_cleanup branch.
This work is done by lmadsen, junky and mvanbaak
during AstriDevCon.
This is the second audit the CLI got, and
this time lmadsen made sure he had _ALL_ modules
loaded that have CLI commands in them.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@145121 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/manager.c')
-rw-r--r-- | main/manager.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/manager.c b/main/manager.c index 7d57eb673..ee93dad36 100644 --- a/main/manager.c +++ b/main/manager.c @@ -519,18 +519,18 @@ static char *handle_mandebug(struct ast_cli_entry *e, int cmd, struct ast_cli_ar { switch (cmd) { case CLI_INIT: - e->command = "manager debug [on|off]"; - e->usage = "Usage: manager debug [on|off]\n Show, enable, disable debugging of the manager code.\n"; + e->command = "manager set debug [on|off]"; + e->usage = "Usage: manager set debug [on|off]\n Show, enable, disable debugging of the manager code.\n"; return NULL; case CLI_GENERATE: return NULL; } - if (a->argc == 2) + if (a->argc == 3) ast_cli(a->fd, "manager debug is %s\n", manager_debug? "on" : "off"); - else if (a->argc == 3) { - if (!strcasecmp(a->argv[2], "on")) + else if (a->argc == 4) { + if (!strcasecmp(a->argv[3], "on")) manager_debug = 1; - else if (!strcasecmp(a->argv[2], "off")) + else if (!strcasecmp(a->argv[3], "off")) manager_debug = 0; else return CLI_SHOWUSAGE; |