[asterisk-commits] rmudgett: trunk r374109 - /trunk/main/cli.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 1 12:05:43 CDT 2012
Author: rmudgett
Date: Mon Oct 1 12:05:37 2012
New Revision: 374109
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374109
Log:
Change core show help output format.
The CLI "core show help" output leaves something to be desired.
1) The command is truncated to a maximum of 30 characters.
2) The output columns are mirrored from the 31st column.
Current output format:
logger mute Toggle logging output to a console
logger reload Reopens the log files
logger rotate Rotates and reopens the log files
logger set level {DEBUG|NOTICE Enables/Disables a specific logging level for this console
logger show channels List configured log channels
New format:
logger mute -- Toggle logging output to a console
logger reload -- Reopens the log files
logger rotate -- Rotates and reopens the log files
logger set level {DEBUG|NOTICE|WARNING|ERROR|VERBOSE|DTMF} {on|off} -- Enables/Disables a specific logging level for this console
logger show channels -- List configured log channels
Review: https://reviewboard.asterisk.org/r/2133/
Modified:
trunk/main/cli.c
Modified: trunk/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/cli.c?view=diff&rev=374109&r1=374108&r2=374109
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Mon Oct 1 12:05:37 2012
@@ -2191,7 +2191,8 @@
continue;
if (match && strncasecmp(matchstr, e->_full_cmd, len))
continue;
- ast_cli(fd, "%30.30s %s\n", e->_full_cmd, S_OR(e->summary, "<no description available>"));
+ ast_cli(fd, "%-30s -- %s\n", e->_full_cmd,
+ S_OR(e->summary, "<no description available>"));
found++;
}
if (!locked)
More information about the asterisk-commits
mailing list