Tue, 12 Jan 2010 02:17:58 +0000
clix: Pass short_help option to modules correctly
clix.lua | file | annotate | diff | comparison | revisions |
--- a/clix.lua Tue Jan 12 02:17:38 2010 +0000 +++ b/clix.lua Tue Jan 12 02:17:58 2010 +0000 @@ -19,7 +19,8 @@ for module in pairs(package.preload) do if module:match("^clix%.") then local m = require(module); - m{ "--short-help" }; + io.write("\t", module:gsub("^clix%.", ""), ": "); + m({ short_help = true }, {}); end end return 0;