[asterisk-commits] mjordan: branch 12 r410209 - /branches/12/main/config_options.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 7 15:53:23 CST 2014


Author: mjordan
Date: Fri Mar  7 15:53:17 2014
New Revision: 410209

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=410209
Log:
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

Modified:
    branches/12/main/config_options.c

Modified: branches/12/main/config_options.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/config_options.c?view=diff&rev=410209&r1=410208&r2=410209
==============================================================================
--- branches/12/main/config_options.c (original)
+++ branches/12/main/config_options.c Fri Mar  7 15:53:17 2014
@@ -1192,6 +1192,11 @@
 			ast_cli(a->fd, "%s\n\n", ast_xmldoc_printable(AS_OR(tmp->synopsis, "No information available"), 1));
 			if (ast_str_strlen(tmp->description)) {
 				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;




More information about the asterisk-commits mailing list