diff options
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 |