Posted 23 April 2014 - 04:18 PM
Alright. I know how to grab arguments when the program is run, tArgs and all that, but is there any way to grab text with io.read() or something, then look for arguments in that? Thanks.
function getArguments( mask )
local args = {}
local input = read( mask )
for word in input:gmatch("%S+") do
table.insert( args, word )
end
return args
end
But you should check out this code and the lua wiki aswell to get a better understanding of it.