diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-10-01 17:05:37 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-10-01 17:05:37 +0000 |
commit | 154ee24ae827da93238ab1f62df82fcae3f87259 (patch) | |
tree | e49623a568b6cec377524a157fdd4edb2282a65a /main/cli.c | |
parent | d819508baee3e29b8738a81dc1a669953f8d6a1f (diff) |
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/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c index e5118ede6..6a2a39f81 100644 --- a/main/cli.c +++ b/main/cli.c @@ -2191,7 +2191,8 @@ static char *help1(int fd, const char * const match[], int locked) 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) |