X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=50221a2ad4ca836e0b8183cab7ec1d0c528d4768;hb=e561e02a8d2f1f009559d17c7b1c66cb6f4e2a5a;hp=e72166d20545e536861a9c1f50b42da58e122620;hpb=0d66a6f9ed6ea90493bca69ff781a1131d981503;p=quassel.git diff --git a/src/common/main.cpp b/src/common/main.cpp index e72166d2..50221a2a 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -85,8 +85,9 @@ int main(int argc, char **argv) { // put core-only arguments here Global::parser.addOption("port",'p',"The port quasselcore will listen at",QString("4242")); Global::parser.addSwitch("norestore", 'n', "Don't restore last core's state"); - Global::parser.addOption("logfile",'l',"Path to logfile","./quassel.log"); + Global::parser.addOption("logfile",'l',"Path to logfile"); Global::parser.addOption("loglevel",'L',"Loglevel Debug|Info|Warning|Error","Info"); + Global::parser.addOption("datadir", 0, "Specify the directory holding datafiles like the Sqlite DB and the SSL Cert"); #endif // BUILD_QTUI #ifndef BUILD_CORE // put client-only arguments here @@ -112,9 +113,8 @@ int main(int argc, char **argv) { logFile.setFileName(Global::parser.value("logfile")); if(!logFile.open(QIODevice::Append | QIODevice::Text)) qWarning("Warning: Couldn't open logfile '%s' - will log to stdout instead",qPrintable(logFile.fileName())); - logFile.close(); + else logFile.close(); } - else qWarning("Warning: Couldn't open logfile '%s' - will log to stdout instead",qPrintable(logFile.fileName())); } qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));