Fix help and command line completion for "show config mappings" (Bug #3766)
authorJosh Roberson <josh@asteriasgi.com>
Thu, 17 Mar 2005 00:35:06 +0000 (00:35 +0000)
committerJosh Roberson <josh@asteriasgi.com>
Thu, 17 Mar 2005 00:35:06 +0000 (00:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5185 65c4cc65-6c06-0410-ace0-fbb531ad65f3

config.c

index 1c7c6cb..afe7211 100755 (executable)
--- a/config.c
+++ b/config.c
@@ -1036,8 +1036,12 @@ static int config_command(int fd, int argc, char **argv)
        return 0;
 }
 
+static char show_config_help[] =
+       "Usage: show config mappings\n"
+       "       Shows the filenames to config engines.\n";
+
 static struct ast_cli_entry config_command_struct = {
-       { "show", "config", "mappings" }, config_command, "Show Config mappings (file names to config engines)"
+       { "show", "config", "mappings", NULL }, config_command, "Show Config mappings (file names to config engines)", show_config_help, NULL
 };
 
 int register_config_cli()