# HG changeset patch # User Matthew Wild # Date 1451592137 0 # Node ID 60e10cf9b20ce3a64a87888ebc1ec4acdc8250fc # Parent f39aceada1adb991493c3e1da139fa460a9a72a1 squish.lua: Add --list-files option, which lists out all files required by the squishy file (with the passed command-line options) diff -r f39aceada1ad -r 60e10cf9b20c squish.lua --- a/squish.lua Thu Dec 31 20:01:15 2015 +0000 +++ b/squish.lua Thu Dec 31 20:02:17 2015 +0000 @@ -196,6 +196,23 @@ end end +print(opts.list_files) +if opts.list_files then + local function write(text) + io.write(text, "\n"); + end + for _, fn in pairs(main_files) do + write(fn); + end + for _, module in ipairs(modules) do + write(module.path); + end + for _, resource in ipairs(resources) do + write(resource.path); + end + return; +end + print_info("Writing "..out_fn.."..."); local f, err = io.open(out_fn, "w+"); if not f then