From cf575b27fe9b71cde258cd473f448eb49ede910f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 4 Feb 2022 19:04:32 +0100 Subject: prosodyctl: Allow passing server on command line with --server Because why not I guess. This mirrors the corresponding luarocks command --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosodyctl b/prosodyctl index c6e31be5..4ff9904a 100755 --- a/prosodyctl +++ b/prosodyctl @@ -83,7 +83,7 @@ function commands.install(arg) return opts.help and 0 or 1; end -- TODO finalize config option name - local server = configmanager.get("*", "plugin_server"); + local server = opts.server or configmanager.get("*", "plugin_server"); if not (arg[1]:match("^https://") or lfs.attributes(arg[1]) or server) then show_warning("There is no 'plugin_server' option in the configuration file"); -- see https://prosody.im/doc/TODO documentation -- cgit v1.2.3