[asterisk-commits] file: branch 1.4 r56008 -
/branches/1.4/main/cli.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Feb 21 17:35:56 MST 2007
Author: file
Date: Wed Feb 21 18:35:55 2007
New Revision: 56008
URL: http://svn.digium.com/view/asterisk?view=rev&rev=56008
Log:
Print out deprecation notice on usage output of CLI commands. (issue #8925 reported by blitzrage)
Modified:
branches/1.4/main/cli.c
Modified: branches/1.4/main/cli.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/cli.c?view=diff&rev=56008&r1=56007&r2=56008
==============================================================================
--- branches/1.4/main/cli.c (original)
+++ branches/1.4/main/cli.c Wed Feb 21 18:35:55 2007
@@ -1990,6 +1990,10 @@
ast_cli(fd, "%s", e->usage);
else
ast_cli(fd, "Invalid usage, but no usage information available.\n");
+ AST_LIST_LOCK(&helpers);
+ if (e->deprecated)
+ ast_cli(fd, "The '%s' command is deprecated and will be removed in a future release. Please use '%s' instead.\n", e->_full_cmd, e->_deprecated_by);
+ AST_LIST_UNLOCK(&helpers);
break;
default:
AST_LIST_LOCK(&helpers);
More information about the asterisk-commits
mailing list