Software /
code /
prosody
Changeset
6985:a2e1f5ebdb53
prosody: Don't silently ignore unknown command-line options
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 10 Dec 2015 13:33:14 +0000 |
parents | 6984:0f633160464c |
children | 6986:6aae14b079d0 |
files | prosody |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/prosody Thu Dec 10 15:16:49 2015 +0100 +++ b/prosody Thu Dec 10 13:33:14 2015 +0000 @@ -43,6 +43,12 @@ end end +if #arg > 0 and arg[1] ~= "--config" then + print("Unknown command-line option: "..tostring(arg[1])); + print("Perhaps you meant to use prosodyctl instead?"); + return 1; +end + -- Global 'prosody' object local prosody = { events = require "util.events".new(); }; _G.prosody = prosody;