Introduce QtUiStyleSettings and make highlight color configurable again
[quassel.git] / src / common / main.cpp
index e72166d..50221a2 100644 (file)
@@ -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()));