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" } |
13 a = "account", p = "password", r = "resource", o = "presence", c = "chatroom", i = "interactive" } |
14 |
14 |
15 if #arg < 1 then |
15 if #arg < 1 then |
16 print("Command Line XMPP, available commands:"); |
16 print("Command Line XMPP, available commands:"); |
17 for module in pairs(package.preload) do |
17 for module in pairs(package.preload) do |
18 if module:match("^clix%.") then |
18 if module:match("^clix%.") then |