diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-22 01:48:07 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-22 01:48:07 +0000 |
commit | b9fac6ba28a3f09ebd0f7c0205fe942d468b76a9 (patch) | |
tree | a7c70f97f72d15d9768c7a3ab8b6613fc9b7fb9f /prosodyctl | |
parent | d5759f6b09492b12325a7916b51b0caa9e17c3bd (diff) | |
download | prosody-b9fac6ba28a3f09ebd0f7c0205fe942d468b76a9.tar.gz prosody-b9fac6ba28a3f09ebd0f7c0205fe942d468b76a9.zip |
prosodyctl: Fix addplugin to support --help, and hide from the help listing (for now)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -504,6 +504,10 @@ local http_errors = { }; function commands.addplugin(arg) + if not arg[1] or arg[1] == "--help" then + show_usage("addplugin URL", "Download and install a plugin from a URL"); + return 1; + end local url = arg[1]; if url:match("^http://") then local http = require "socket.http"; @@ -575,8 +579,8 @@ if not commands[command] then -- Show help for all commands print(""); print("Where COMMAND may be one of:\n"); - local hidden_commands = require "util.set".new{ "register", "unregister" }; - local commands_order = { "adduser", "passwd", "deluser" }; + local hidden_commands = require "util.set".new{ "register", "unregister", "addplugin" }; + local commands_order = { "adduser", "passwd", "deluser", "start", "stop", "restart" }; local done = {}; |