90 if not have_lfs then |
90 if not have_lfs then |
91 error("The '-d' parameter requires LuaFileSystem (lfs), please make sure this library is available"); |
91 error("The '-d' parameter requires LuaFileSystem (lfs), please make sure this library is available"); |
92 end |
92 end |
93 local path = assert(get_value(), "path expected for '-d'"):gsub("/*$", ""); |
93 local path = assert(get_value(), "path expected for '-d'"):gsub("/*$", ""); |
94 for f in lfs.dir(path) do |
94 for f in lfs.dir(path) do |
95 if f:sub(1,1) ~= "." then |
95 if f:sub(1,1) ~= "." and f:sub(-4) == ".scs" then |
96 table.insert(files, path.."/"..f); |
96 table.insert(files, path.."/"..f); |
97 end |
97 end |
98 end |
98 end |
99 elseif opt == "--summary" then |
99 elseif opt == "--summary" then |
100 force_summary = true; |
100 force_summary = true; |