From c028aceb9f3bda3ad8f46dada4a7e38381ee60f2 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 10 Dec 2015 13:33:14 +0000 Subject: prosody: Don't silently ignore unknown command-line options --- prosody | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'prosody') diff --git a/prosody b/prosody index 47998583..a2cb0e6c 100755 --- a/prosody +++ b/prosody @@ -43,6 +43,12 @@ if CFG_DATADIR then 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; -- cgit v1.2.3