projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7755f46
)
prosody: Don't silently ignore unknown command-line options
author
Matthew Wild
<mwild1@gmail.com>
Thu, 10 Dec 2015 13:33:14 +0000
(13:33 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Thu, 10 Dec 2015 13:33:14 +0000
(13:33 +0000)
prosody
patch
|
blob
|
history
diff --git
a/prosody
b/prosody
index 47998583168463b238f6998e038f3a544e18c99b..a2cb0e6cdb09319aa1650d7b51f4597728947aab 100755
(executable)
--- 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;