config_options.c: Fix truncation of option descriptions.

This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
(cherry picked from commit 98186cba63)
releases/18
Naveen Albert 2 years ago committed by Asterisk Development Team
parent 1c02e51f46
commit 0b8535d143

@ -1306,7 +1306,7 @@ static void cli_show_module_type(struct ast_cli_args *a)
tmp = item; tmp = item;
while ((tmp = AST_LIST_NEXT(tmp, next))) { while ((tmp = AST_LIST_NEXT(tmp, next))) {
if (!strcasecmp(tmp->type, "configOption") && !strcasecmp(tmp->ref, a->argv[4])) { if (!strcasecmp(tmp->type, "configOption") && !strcasecmp(tmp->ref, a->argv[4])) {
ast_cli(a->fd, "%-25s -- %-65.65s\n", tmp->name, ast_cli(a->fd, "%-25s -- %-120.120s\n", tmp->name,
ast_str_buffer(tmp->synopsis)); ast_str_buffer(tmp->synopsis));
} }
} }

Loading…
Cancel
Save