Differences From Artifact [8abc7a6fc7]:
- File cmdparse.t — part of check-in [6f17de4767] at 2020-12-14 14:40:34 on branch trunk — more boilerplate, add template framework (user: lexi, size: 1791) [annotate] [blame] [check-ins using]
To Artifact [c7f162fae3]:
- File cmdparse.t — part of check-in [59e1d7d56a] at 2020-12-16 08:46:02 on branch trunk — iterating (user: lexi, size: 1808) [annotate] [blame] [check-ins using]
1 +-- vim: ft=terra 1 2 return function(tbl) 2 3 local options = terralib.types.newstruct('options') do 3 4 local flags = '' for _,d in pairs(tbl) do flags = flags .. d[1] end 4 5 local helpstr = 'usage: parsav [-' .. flags .. '] [<arg>...]\n' 5 6 options.entries = { 6 7 {field = 'arglist', type = lib.mem.ptr(rawstring)} 7 8 }