]> source.dussan.org Git - rspamd.git/commitdiff
Slightly improve help output
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 2 Jan 2016 18:46:06 +0000 (18:46 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 2 Jan 2016 18:46:06 +0000 (18:46 +0000)
src/rspamadm/confighelp.lua

index 223de294a8a18677293ea93505b3f7ae3d0788d6..476065b2fb2e401d150c13ada156d4a53257dce9 100644 (file)
@@ -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)