From 619cf0043f51d100acb0b4f88b62f300058e274b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 25 Oct 2021 15:47:18 +0200 Subject: util.startup: Understand -h, -? as --help in prosodyctl but ignore prosodyctl -h showing an error was not very helpful, especially since prosodyctl shows its help for any unknown (or none) command. --- util/startup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/startup.lua b/util/startup.lua index 890e18ba..b3357783 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -28,7 +28,7 @@ local arg_settigs = { value_params = { config = true }; }; prosodyctl = { - short_params = { v = "verbose" }; + short_params = { v = "verbose", h = "help", ["?"] = "help" }; value_params = { config = true }; }; } -- cgit v1.2.3