aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-10-25 15:47:18 +0200
committerKim Alvefur <zash@zash.se>2021-10-25 15:47:18 +0200
commit619cf0043f51d100acb0b4f88b62f300058e274b (patch)
treefffd41d53a09e6a52a880a49542dd4b8265de790
parent7791f88775b7e1ff14b793afbae4c2b74b591307 (diff)
downloadprosody-619cf0043f51d100acb0b4f88b62f300058e274b.tar.gz
prosody-619cf0043f51d100acb0b4f88b62f300058e274b.zip
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.
-rw-r--r--util/startup.lua2
1 files changed, 1 insertions, 1 deletions
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 };
};
}