Software /
code /
clix
Changeset
28:c2998f70dfd4
clix: Pass short_help option to modules correctly
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Jan 2010 02:17:58 +0000 |
parents | 27:5b58c002d6ad |
children | 29:1003e44cf3b0 |
files | clix.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;