From: Vsevolod Stakhov Date: Sat, 2 Jan 2016 18:46:06 +0000 (+0000) Subject: Slightly improve help output X-Git-Tag: 1.1.0~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd17349670f89fced7e3384ed32ae82f01c7616c;p=thirdparty%2Frspamd.git Slightly improve help output --- 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)