Comparison

util/prosodyctl/shell.lua @ 10938:a5b8ae066688

util.prosodyctl.shell: Collect extra return values Forgot in previous commit
author Kim Alvefur <zash@zash.se>
date Wed, 17 Jun 2020 19:39:14 +0200
parent 10937:d86f59c31458
child 11422:fa5a23d7aabc
comparison
equal deleted inserted replaced
10937:d86f59c31458 10938:a5b8ae066688
58 print("https://prosody.im/doc/console\n"); 58 print("https://prosody.im/doc/console\n");
59 end 59 end
60 60
61 local function start(arg) --luacheck: ignore 212/arg 61 local function start(arg) --luacheck: ignore 212/arg
62 local client = adminstream.client(); 62 local client = adminstream.client();
63 local opts = parse_args(arg); 63 local opts, err, where = parse_args(arg);
64 64
65 if not opts then 65 if not opts then
66 if err == "param-not-found" then 66 if err == "param-not-found" then
67 print("Unknown command-line option: "..tostring(where)); 67 print("Unknown command-line option: "..tostring(where));
68 elseif err == "missing-value" then 68 elseif err == "missing-value" then