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; |