summaryrefslogtreecommitdiff
path: root/main/config_options.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-03-07 21:54:01 +0000
committerMatthew Jordan <mjordan@digium.com>2014-03-07 21:54:01 +0000
commitb2c4eaf06afc2d9069fdbbd40bac7c9d50475668 (patch)
treeef8b5f7d5c52b6071a50f8b75e5fc6f8c49622a7 /main/config_options.c
parentdd603ca96fb8f3ef545b75228ba11554f85725e5 (diff)
config_options: Display the see-also information for CLI config option help
The config option help information has always parsed the <see-also> tags in the XML documentation. Unfortunately, it just never bothered displaying them on the CLI. With this patch, when you execute 'config show help [module] [obj] [option]', it will display what other options are useful to you. (closes issue ASTERISK-22008) Reported by: Richard Mudgett ........ Merged revisions 410209 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/config_options.c')
-rw-r--r--main/config_options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/config_options.c b/main/config_options.c
index 2733d5c62..ec45abb4f 100644
--- a/main/config_options.c
+++ b/main/config_options.c
@@ -1200,6 +1200,11 @@ static void cli_show_module_options(struct ast_cli_args *a)
ast_cli(a->fd, "%s\n\n", ast_xmldoc_printable(ast_str_buffer(tmp->description), 1));
}
+ if (ast_str_strlen(tmp->seealso)) {
+ ast_cli(a->fd, "See Also:\n");
+ ast_cli(a->fd, "%s\n\n", ast_xmldoc_printable(ast_str_buffer(tmp->seealso), 1));
+ }
+
match = 1;
}
}