Software /
code /
clix
Changeset
126:c9d03a70a936
clix.adhoc: Print field labels if available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Mar 2016 16:13:02 +0100 |
parents | 125:75902417ff05 |
children | 127:6a27edf256c3 |
files | clix/adhoc.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/adhoc.lua Mon Mar 21 16:12:25 2016 +0100 +++ b/clix/adhoc.lua Mon Mar 21 16:13:02 2016 +0100 @@ -68,7 +68,7 @@ end for i, item in ipairs(command_form_layout) do if item.type ~= "hidden" then - print("== " .. item.name .. " ==") + print("== " .. (item.label or item.name) .. " ==") print(data[item.name]); end end