Diff

clix.lua @ 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
parent 23:c5f04bdc7c64
child 32:cda6a004ff79
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;