Comparison

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
comparison
equal deleted inserted replaced
11869:d52a73425eba 11870:1d1ed2be3491
26 prosody = { 26 prosody = {
27 short_params = { D = "daemonize"; F = "no-daemonize", h = "help", ["?"] = "help" }; 27 short_params = { D = "daemonize"; F = "no-daemonize", h = "help", ["?"] = "help" };
28 value_params = { config = true }; 28 value_params = { config = true };
29 }; 29 };
30 prosodyctl = { 30 prosodyctl = {
31 short_params = { v = "verbose" }; 31 short_params = { v = "verbose", h = "help", ["?"] = "help" };
32 value_params = { config = true }; 32 value_params = { config = true };
33 }; 33 };
34 } 34 }
35 35
36 function startup.parse_args() 36 function startup.parse_args()