X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=2bb2cdaf9d487bc6c3a1d3b2c852f905450274d9;hb=2deb46a3ce819c709800f1ded9072e62807b9574;hp=9823f85bbd54dd6c670a66acfe26852831df2004;hpb=d54b44bc5b6e1ff4308f9d143babf29028ae47cd;p=quassel.git diff --git a/src/common/main.cpp b/src/common/main.cpp index 9823f85b..2bb2cdaf 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -104,8 +104,12 @@ int main(int argc, char **argv) { cliParser->addOption("listen
[,", 0, "The address(es) quasselcore will listen on", "::,0.0.0.0"); cliParser->addOption("port ",'p', "The port quasselcore will listen at", QString("4242")); cliParser->addSwitch("norestore", 'n', "Don't restore last core's state"); - cliParser->addOption("logfile ", 'l', "Path to logfile"); cliParser->addOption("loglevel ", 'L', "Loglevel Debug|Info|Warning|Error", "Info"); +#ifdef HAVE_SYSLOG_H + cliParser->addSwitch("syslog", 0, "Send the log to syslog."); +#else + cliParser->addOption("logfile ", 'l', "Path to logfile"); +#endif cliParser->addOption("select-backend ", 0, "Starts an interactive session and switches your current storage backend to the new one. Attempts a merge if the new backend is uninitialized and the old backend supports migration. Otherwise prompts for new user credentials!"); cliParser->addSwitch("add-user", 0, "Starts an interactive session to add a new core user"); cliParser->addOption("change-userpass ", 0, "Starts an interactive session to change the password of the user identified by username");