diff -r b9470a7655b4 -r 4608c7c025e5 squish.lua --- a/squish.lua Thu Dec 31 20:28:50 2015 +0000 +++ b/squish.lua Thu Dec 31 20:29:08 2015 +0000 @@ -203,9 +203,16 @@ end end -if opts.list_files then - local function write(text) - io.write(text, "\n"); +if opts.list_files or opts.list_missing_files then + local function write(filename) + if opts.list_missing_files then + local f = io.open(filename); + if f then + f:close(); + return; + end + end + io.write(filename, "\n"); end for _, fn in pairs(main_files) do write(fn);