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.
This commit is contained in:
Kim Alvefur 2021-10-25 15:47:18 +02:00
parent 7791f88775
commit 619cf0043f

View file

@ -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 };
};
}