diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-01-19 15:50:32 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-01-19 15:50:32 +0000 |
commit | 4bbc2c71208f7a53bd0d7ae02f17371b47657869 (patch) | |
tree | ccf44ef3b4abbc11f1d3c818d33c86cd769e7904 | |
parent | 2c379eb7110b83716e6c6267be135fcdc72bdbd7 (diff) | |
download | prosody-4bbc2c71208f7a53bd0d7ae02f17371b47657869.tar.gz prosody-4bbc2c71208f7a53bd0d7ae02f17371b47657869.zip |
util.startup: Ensure prosody.opts exists even when no options provided
-rw-r--r-- | util/startup.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua index 35be3162..24ed6026 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -17,6 +17,7 @@ local value_params = { config = true }; function startup.parse_args() local parsed_opts = {}; + prosody.opts = parsed_opts; if #arg == 0 then return; @@ -64,7 +65,6 @@ function startup.parse_args() end parsed_opts[param_k] = param_v; end - prosody.opts = parsed_opts; end function startup.read_config() |