[Box Backup-commit] COMMIT r2021 - box/trunk/lib/server

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Sat, 5 Jan 2008 18:31:02 +0000 (UTC)


Author: chris
Date: 2008-01-05 18:31:01 +0000 (Sat, 05 Jan 2008)
New Revision: 2021

Modified:
   box/trunk/lib/server/Daemon.cpp
Log:
Print the path of the current/default configuration file in usage.


Modified: box/trunk/lib/server/Daemon.cpp
===================================================================
--- box/trunk/lib/server/Daemon.cpp	2008-01-03 23:24:56 UTC (rev 2020)
+++ box/trunk/lib/server/Daemon.cpp	2008-01-05 18:31:01 UTC (rev 2021)
@@ -114,11 +114,12 @@
 	std::cout << 
 	DaemonBanner() << "\n"
 	"\n"
-	"Usage: " << mAppName << " [options] [config file]\n" <<
+	"Usage: " << mAppName << " [options] [config file]\n"
 	"\n"
 	"Options:\n"
 	"  -c <file>  Use the specified configuration file. If -c is omitted, the last\n"
-	"             argument is the configuration file\n"
+	"             argument is the configuration file, or else the default \n"
+	"             [" << GetConfigFileName() << "]\n"
 #ifndef WIN32
 	"  -D         Debugging mode, do not fork, one process only, one client only\n"
 	"  -F         Do not fork into background, but fork to serve multiple clients\n"