util.startup: Understand -h, -? as --help in prosodyctl but ignore
authorKim Alvefur <zash@zash.se>
Mon, 25 Oct 2021 15:47:18 +0200
changeset 11874 1d1ed2be3491
parent 11873 d52a73425eba
child 11875 5dcbba569fb9
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
--- a/util/startup.lua	Mon Oct 25 15:46:01 2021 +0200
+++ b/util/startup.lua	Mon Oct 25 15:47:18 2021 +0200
@@ -28,7 +28,7 @@
 		value_params = { config = true };
 	};
 	prosodyctl = {
-		short_params = { v = "verbose" };
+		short_params = { v = "verbose", h = "help", ["?"] = "help" };
 		value_params = { config = true };
 	};
 }