Diff

util/prosodyctl.lua @ 10136:38775965fcd5

util.prosodyctl: Added help support to 'admin_operation'
author João Duarte <jvsDuarte08@gmail.com>
date Thu, 27 Jun 2019 18:01:36 +0100
parent 10132:b59535964e81
child 10148:263b61d03d70
line wrap: on
line diff
--- 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