I would like to make a Lua script that could run with arguments in Linux, for an example, lua foo.lua 25 would process the number 25 and give you an answer based off of that, my current program uses io.read to ask the user to enter a number, but I would like to do that at the same time I run the program.
Searching on the subject I did find this page http://www.lua.org/manual/5.1/manual.html#6 and haven't been able to make sense of it, this is the first program I've written, it's a happy number finder incase you are curious, thanks for the help.