# HG changeset patch # User Matthew Wild # Date 1449754394 0 # Node ID a2e1f5ebdb53c2fb597704c1a5958d285e4d0112 # Parent 0f633160464c62168df80f26630dee275352bd5e prosody: Don't silently ignore unknown command-line options diff -r 0f633160464c -r a2e1f5ebdb53 prosody --- 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;