prosody
changeset 10603 4f655918fef1
parent 10046 4e63e28ba362
parent 10601 25a3c8134b0a
child 11575 a8f0f87e115a
equal deleted inserted replaced
10599:17bab303daf5 10603:4f655918fef1
    41 	if os.getenv("HOME") then
    41 	if os.getenv("HOME") then
    42 		CFG_DATADIR = CFG_DATADIR:gsub("^~", os.getenv("HOME"));
    42 		CFG_DATADIR = CFG_DATADIR:gsub("^~", os.getenv("HOME"));
    43 	end
    43 	end
    44 end
    44 end
    45 
    45 
    46 if #arg > 0 and arg[1] ~= "--config" then
    46 
    47 	print("Unknown command-line option: "..tostring(arg[1]));
       
    48 	print("Perhaps you meant to use prosodyctl instead?");
       
    49 	return 1;
       
    50 end
       
    51 
    47 
    52 local startup = require "util.startup";
    48 local startup = require "util.startup";
    53 local async = require "util.async";
    49 local async = require "util.async";
    54 
    50 
    55 -- Note: it's important that this thread is not GC'd, as some C libraries
    51 -- Note: it's important that this thread is not GC'd, as some C libraries