From 154ee24ae827da93238ab1f62df82fcae3f87259 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Mon, 1 Oct 2012 17:05:37 +0000 Subject: 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 --- main/cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, "")); + ast_cli(fd, "%-30s -- %s\n", e->_full_cmd, + S_OR(e->summary, "")); found++; } if (!locked) -- cgit v1.2.3