# HG changeset patch # User Kim Alvefur # Date 1458573114 -3600 # Node ID ff422623e0ba67f9715e4ee4517bc29d55a9d8d7 # Parent c61fadb9d4fa017fa76ca185bbee013ea5b93db9 clix.adhoc: Print form title and instructions if available diff -r c61fadb9d4fa -r ff422623e0ba clix/adhoc.lua --- a/clix/adhoc.lua Mon Mar 21 16:06:14 2016 +0100 +++ b/clix/adhoc.lua Mon Mar 21 16:11:54 2016 +0100 @@ -54,6 +54,14 @@ if cmd.form then local command_form_layout = dataforms.from_stanza(cmd.form) local data = command_form_layout:data(cmd.form); + if data.title then + print("= " .. data.title .. " ="); + print() + end + if data.instructions then + print(data.instructions); + print() + end for i, item in ipairs(command_form_layout) do if item.type ~= "hidden" then print("== " .. item.name .. " ==")