aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJoão Duarte <jvsDuarte08@gmail.com>2019-06-27 18:01:36 +0100
committerJoão Duarte <jvsDuarte08@gmail.com>2019-06-27 18:01:36 +0100
commit7555016ac24cb681b2c443324652a5cc9df61799 (patch)
treef9572801a8af054a8b45be6ee69a6448b3f9294a /util
parent11a354176f389c17770db9a11f45cd3cdcfe7472 (diff)
downloadprosody-7555016ac24cb681b2c443324652a5cc9df61799.tar.gz
prosody-7555016ac24cb681b2c443324652a5cc9df61799.zip
util.prosodyctl: Added help support to 'admin_operation'
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index e2bc4369..c2235e85 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -279,6 +279,11 @@ local function reload()
end
local function admin_operation(operation, arg)
+ if arg[1] == "--help" then
+ print(" admin-"..operation)
+ print(" "..operation.."plugins from a server (repository)")
+ return 1;
+ end
local modules, tree, server, refresh = "", "", "", ""
for i, _ in ipairs(arg) do
if arg[i]:sub(1, #"--tree=") == "--tree=" then