# HG changeset patch # User Kim Alvefur # Date 1634043615 -7200 # Node ID 2b3ce80ffeceb8d9d94f1864933c8b2cf682124c # Parent 6425dfa3de45aa18cb93aca8c98fe012605bcf42 util.startup: Only ask if 'prosodyctl' was meant instead of 'prosody' (fix #1692) diff -r 6425dfa3de45 -r 2b3ce80ffece util/startup.lua --- 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