Software /
code /
clix
Comparison
clix.lua @ 82:30f85754b1e0
clix.lua: add -i for --interactive
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Jun 2012 14:40:36 +0200 |
parent | 70:5e93cfc73444 |
child | 86:12939dcba0f2 |
comparison
equal
deleted
inserted
replaced
81:e87f4d0b1a80 | 82:30f85754b1e0 |
---|---|
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 |