clix/raw.lua

changeset 27
5b58c002d6ad
parent 23
c5f04bdc7c64
child 46
b5d6e443e571
equal deleted inserted replaced
26:028c5ffc6d7c 27:5b58c002d6ad
1 short_opts.i = "interactive"; 1 short_opts.i = "interactive";
2 short_opts.e = "echo"; 2 short_opts.e = "echo";
3 3
4 return function (opts, args) 4 return function (opts, args)
5 if opts.short_help then
6 print("Send/receive raw XML to/from the server");
7 return;
8 end
5 local function on_connect(conn) 9 local function on_connect(conn)
6 conn:hook("incoming-raw", print); 10 conn:hook("incoming-raw", print);
7 if opts.interactive or opts.stdin then 11 if opts.interactive or opts.stdin then
8 local stdin = { 12 local stdin = {
9 getfd = function () return 0; end; 13 getfd = function () return 0; end;

mercurial