Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if select("#", ...) == 0 then
- io.stderr:write "usage: lua client.lua <time client 1>,<time client 2>, ..."
- end
- local arg = {...}
- print(arg)
- for i=1, select('#', ...) do
- local arg = select(i,...)
- print("arg: " .. arg)
- end
- for k,v in ipairs(arg) do
- print(k,v)
- end
- function fwrite(fmt, ...)
- return io.write(string.format(fmt, ...))
- end
- print("type of ...: " .. type(...))
- fwrite("%s,\t %s,\t %s,\t %s", ... )
- print("\n")
Advertisement
Add Comment
Please, Sign In to add comment