// 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
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()));