Tweak anonymous-script.

develop
expwnent 2015-02-02 05:21:13 -05:00
parent 0fa316f6eb
commit def4fca175
1 changed files with 1 additions and 0 deletions

@ -7,6 +7,7 @@
local args = {...}
--automatically collect arguments to make the anonymous script more succinct
--load(ld,source,mode,env)
local f,err = load('local args = {...}; ' .. args[1], '=(anonymous lua script)') --,'=(lua command)', 't')
if err then
error(err)