17 if not command then |
17 if not command then |
18 print("Command Line XMPP, available commands:"); |
18 print("Command Line XMPP, available commands:"); |
19 for module in pairs(package.preload) do |
19 for module in pairs(package.preload) do |
20 if module:match("^clix%.") then |
20 if module:match("^clix%.") then |
21 local m = require(module); |
21 local m = require(module); |
22 m{ "--short-help" }; |
22 io.write("\t", module:gsub("^clix%.", ""), ": "); |
|
23 m({ short_help = true }, {}); |
23 end |
24 end |
24 end |
25 end |
25 return 0; |
26 return 0; |
26 end |
27 end |
27 |
28 |