clix: Pass short_help option to modules correctly

Tue, 12 Jan 2010 02:17:58 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 12 Jan 2010 02:17:58 +0000
changeset 28
c2998f70dfd4
parent 27
5b58c002d6ad
child 29
1003e44cf3b0

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;

mercurial