aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-10-12 15:00:15 +0200
committerKim Alvefur <zash@zash.se>2021-10-12 15:00:15 +0200
commit14367c5ef7d8e98cba7dc19c59ed5bd736da40a3 (patch)
tree05931503cfc043c0657f036ecff9c389a22b38ba
parent8145673928987902e0bae4cc93563bf81ca34dde (diff)
downloadprosody-14367c5ef7d8e98cba7dc19c59ed5bd736da40a3.tar.gz
prosody-14367c5ef7d8e98cba7dc19c59ed5bd736da40a3.zip
util.startup: Only ask if 'prosodyctl' was meant instead of 'prosody' (fix #1692)
-rw-r--r--util/startup.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua
index 669e3124..5e3bba7b 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -38,7 +38,9 @@ function startup.parse_args()
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