aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl/shell.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua
index a05904f0..f4bc478d 100644
--- a/util/prosodyctl/shell.lua
+++ b/util/prosodyctl/shell.lua
@@ -73,9 +73,8 @@ local function start(arg) --luacheck: ignore 212/arg
if arg[1] then
if arg[2] then
- -- TODO send each arg[] and wait for reply?
- print("Only one command is supported as argument");
- os.exit(1);
+ -- prosodyctl shell module reload foo bar.com --> module:reload("foo", "bar.com")
+ arg[1] = string.format("%s:%s("..string.rep("%q", #arg-2, ", ")..")", table.unpack(arg));
end
client.events.add_handler("connected", function()