diff options
author | João Duarte <jvsDuarte08@gmail.com> | 2019-06-27 18:01:36 +0100 |
---|---|---|
committer | João Duarte <jvsDuarte08@gmail.com> | 2019-06-27 18:01:36 +0100 |
commit | 7555016ac24cb681b2c443324652a5cc9df61799 (patch) | |
tree | f9572801a8af054a8b45be6ee69a6448b3f9294a /util | |
parent | 11a354176f389c17770db9a11f45cd3cdcfe7472 (diff) | |
download | prosody-7555016ac24cb681b2c443324652a5cc9df61799.tar.gz prosody-7555016ac24cb681b2c443324652a5cc9df61799.zip |
util.prosodyctl: Added help support to 'admin_operation'
Diffstat (limited to 'util')
-rw-r--r-- | util/prosodyctl.lua | 5 |
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 |