aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-27 19:21:03 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-27 19:21:03 +0000
commit3707e8c13e8e63356aaa2a2d3f9b5cf270d9e6eb (patch)
tree355896bd4bcf53421e8335948c64fd6fdeb485cb /main/cli.c
parent35d48395b049c38f32a68543de2e8b95e51f4a57 (diff)
Merged revisions 118551 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r118551 | tilghman | 2008-05-27 14:15:27 -0500 (Tue, 27 May 2008) | 6 lines When showing an error message for a command, don't shorten the command output, as it tends to confuse the user (it's fine for suggesting other commands, however). Reported by: seanbright (on #asterisk-dev) Fixed by: me ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118554 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index 400678006..1335ec6b7 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -1875,7 +1875,7 @@ int ast_cli_command(int fd, const char *s)
ast_atomic_fetchadd_int(&e->inuse, 1);
AST_RWLIST_UNLOCK(&helpers);
if (e == NULL) {
- ast_cli(fd, "No such command '%s' (type 'help' for help)\n", find_best(args + 1));
+ ast_cli(fd, "No such command '%s' (type 'help %s' for other possible commands)\n", s, find_best(args + 1));
goto done;
}
/*