From cd17349670f89fced7e3384ed32ae82f01c7616c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 2 Jan 2016 18:46:06 +0000 Subject: [PATCH] Slightly improve help output --- src/rspamadm/confighelp.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/rspamadm/confighelp.lua b/src/rspamadm/confighelp.lua index 223de294a8..476065b2fb 100644 --- a/src/rspamadm/confighelp.lua +++ b/src/rspamadm/confighelp.lua @@ -65,13 +65,15 @@ local function print_help(key, value, tabs) if value['data'] then print(string.format('%s\tDescription: %s', tabs, value['data'])) end - if value['type'] then - print(string.format('%s\tType: %s', tabs, value['type'])) - end - if not opts['no-examples'] and value['example'] then print(string.format('%s\tExample: %s', tabs, value['example'])) end + if value['type'] then + print(string.format('%s\tType: %s', tabs, value['type'])) + if value['type'] == 'object' then + print('') + end + end end local sorted = sort_values(value) -- 2.47.3