aboutsummaryrefslogtreecommitdiffstats
path: root/util/startup.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/startup.lua')
-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