Btw, I did some test and I was wondering how we can pass arguments to a Lua script?
In fact LuaX
command should grab extra arguments after the script name and put them to Lua table named "arg", the same as original lua
command. I will add argument passing in the next version. Additionally LuaExplorador will have a requester allowing for specifying commandline arguments after loading a script.Quote:
(and it would be really nice to have a ReadArgs() implementation)
This will be done later. Adding direct interface to all system functions is a bit dangerous, as it may break the Lua sandbox. ReadArgs() however is relatively safe.