diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-02 18:46:06 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-02 18:46:06 +0000 |
commit | cd17349670f89fced7e3384ed32ae82f01c7616c (patch) | |
tree | 799fdb587cd807a762afa599b9069079ed63a1a4 | |
parent | 19b3ca43a6579c3dfa5644babdd3c69fdf6e5469 (diff) | |
download | rspamd-cd17349670f89fced7e3384ed32ae82f01c7616c.tar.gz rspamd-cd17349670f89fced7e3384ed32ae82f01c7616c.zip |
Slightly improve help output
-rw-r--r-- | src/rspamadm/confighelp.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rspamadm/confighelp.lua b/src/rspamadm/confighelp.lua index 223de294a..476065b2f 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) |