From 14367c5ef7d8e98cba7dc19c59ed5bd736da40a3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 12 Oct 2021 15:00:15 +0200 Subject: util.startup: Only ask if 'prosodyctl' was meant instead of 'prosody' (fix #1692) --- util/startup.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util') 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 -- cgit v1.2.3