diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-27 16:04:08 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-27 16:04:08 +0000 |
commit | 72bb7fe7ccaa9647d45827d876b37314aee64f9f (patch) | |
tree | 3099a43a2a4962b5ccad84e7c492156f6cafbccc /cli.c | |
parent | 082031115e1d6e5708c94a4de6761c1bd8c5e75a (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@11306 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1363,7 +1363,10 @@ int ast_cli_command(int fd, char *s) if (e) { switch(e->handler(fd, x, argv)) { case RESULT_SHOWUSAGE: - ast_cli(fd, "%s", e->usage); + if (e->usage) + ast_cli(fd, "%s", e->usage); + else + ast_cli(fd, "%s", "Invalid usage, but no usage information available.\n"); break; } } else |