util.startup: Only ask if 'prosodyctl' was meant instead of 'prosody' (fix #1692)
--- a/util/startup.lua Tue Oct 12 14:59:18 2021 +0200
+++ b/util/startup.lua Tue Oct 12 15:00:15 2021 +0200
@@ -38,7 +38,9 @@
if not opts then
if err == "param-not-found" then
print("Unknown command-line option: "..tostring(where));
- print("Perhaps you meant to use prosodyctl instead?");
+ if prosody.process_type == "prosody" then
+ print("Perhaps you meant to use prosodyctl instead?");
+ end
elseif err == "missing-value" then
print("Expected a value to follow command-line option: "..where);
end