[asterisk-commits] mjordan: trunk r410210 - in /trunk: ./ main/config_options.c

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


Author: mjordan
Date: Fri Mar  7 15:54:01 2014
New Revision: 410210

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

Merged revisions 410209 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/main/config_options.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/main/config_options.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/config_options.c?view=diff&rev=410210&r1=410209&r2=410210
==============================================================================
--- trunk/main/config_options.c (original)
+++ trunk/main/config_options.c Fri Mar  7 15:54:01 2014
@@ -1198,6 +1198,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