Diff

util/startup.lua @ 11870:1d1ed2be3491

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.
author Kim Alvefur <zash@zash.se>
date Mon, 25 Oct 2021 15:47:18 +0200
parent 11869:d52a73425eba
child 11948:dca75cc6fc5a
line wrap: on
line diff
--- 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 };
 	};
 }