clix.lua

changeset 102
f1166645a56c
parent 89
a8b63fbad807
child 122
1dfd28db10bd
equal deleted inserted replaced
101:956242b7d5df 102:f1166645a56c
8 require "verse" 8 require "verse"
9 require "verse.client" 9 require "verse.client"
10 10
11 -- Global to allow commands to add to it 11 -- Global to allow commands to add to it
12 short_opts = { v = "verbose", q = "quiet", t = "to", f = "from", e = "type", 12 short_opts = { v = "verbose", q = "quiet", t = "to", f = "from", e = "type",
13 a = "account", p = "password", r = "resource", o = "presence", c = "chatroom", i = "interactive" } 13 a = "account", p = "password", r = "resource", o = "presence", c = "chatroom", i = "interactive",
14 f = "file" }
14 15
15 if #arg < 1 then 16 if #arg < 1 then
16 print("Command Line XMPP, available commands:"); 17 print("Command Line XMPP, available commands:");
17 for module in pairs(package.preload) do 18 for module in pairs(package.preload) do
18 if module:match("^clix%.") then 19 if module:match("^clix%.") then

mercurial