-- -- Iris control -- -- Usage: -- iris -- Display iris state -- iris open -- iris close -- dofile("config") dofile("compat") args = {...} function main() if #args == 0 then print(check(sg.irisState())) elseif args[1] == "open" then check(sg.openIris()) elseif args[1] == "close" then check(sg.closeIris()) else print(args[1] .. " not understood") end end try(main)