# HG changeset patch # User Matthew Wild # Date 1248697136 -3600 # Node ID 1322ee949d4a7c3afecb24923111b3289556c1ea # Parent f3628c9ed690754e353ca2c25ca9c6b3722e6f21 make_squishy: Add help text diff -r f3628c9ed690 -r 1322ee949d4a make_squishy --- a/make_squishy Mon Jul 27 04:36:56 2009 +0100 +++ b/make_squishy Mon Jul 27 13:18:56 2009 +0100 @@ -1,5 +1,18 @@ #!/usr/bin/env lua +if not arg[1] or arg[1]:match("%-%-?help") or arg[1]:match("^[/-]%?$") then + print "make_squishy - Generate squishy files for your projects" + print "" + print(" Usage: "..arg[0].." FILE1 FILE2 FILE..."); + print "" + print "make_squishy will scan the given files for require() calls, and convert the " + print "found modules into a squishy file, 'squishy.new'. make_squishy automatically scans " + print "the modules it finds, looking for further dependencies. To disable this, use " + print "the --no-recursion option." + return; +end + + local short_opts = { v = "verbose", vv = "very_verbose", o = "output", q = "quiet", qq = "very_quiet", f = "force" } local files, opts = {}, {}; local scanned_files, modules = {}, {};