From cd1f334f31a2908cc85b7be100475a77e603101d Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 17 Apr 2015 22:56:35 +0100 Subject: [PATCH] Update error message about --datadir Noone remembers these days that at some point ZNC supported using the same config directory, but different znc.conf. So now the old message is just confusing. However, nowadays many people confuse "/znc foo" in IRC client with "znc foo" in shell. --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1ab54df2..09b2c9cd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -248,8 +248,9 @@ int main(int argc, char** argv) { } if (optind < argc) { - CUtils::PrintError("Specifying a config file as an argument isn't supported anymore."); - CUtils::PrintError("Use --datadir instead."); + CUtils::PrintError("Unrecognized command line arguments."); + CUtils::PrintError("Did you mean to run `/znc " + CString(argv[optind]) + "' in IRC client instead?"); + CUtils::PrintError("Hint: `/znc " + CString(argv[optind]) + "' is an alias for `/msg *status " + CString(argv[optind]) + "'"); return 1; }