# HG changeset patch
# User João Duarte <jvsDuarte08@gmail.com>
# Date 1561654896 -3600
# Node ID 38775965fcd5fc6865da6b476a25bbce562508be
# Parent  3ae2809030dd428c55d993ff83b76efa58f55c25
util.prosodyctl: Added help support to 'admin_operation'

diff -r 3ae2809030dd -r 38775965fcd5 util/prosodyctl.lua
--- a/util/prosodyctl.lua	Thu Jun 27 18:00:11 2019 +0100
+++ b/util/prosodyctl.lua	Thu Jun 27 18:01:36 2019 +0100
@@ -279,6 +279,11 @@
 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