X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=98ab018c7345c5d72fde22ba5e8dc010c2227136;hb=61bb39074a57474ce8d6059f79de040f6a242ec2;hp=2a33a3d801200643f96e1733444fbbb33f07d2b7;hpb=94c044f0b66f18df2f84e84fc6b2c183db39152f;p=quassel.git diff --git a/src/common/main.cpp b/src/common/main.cpp index 2a33a3d8..98ab018c 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -84,21 +84,22 @@ int main(int argc, char **argv) { // put shared client&core arguments here cliParser->addSwitch("debug",'d', "Enable debug output"); cliParser->addSwitch("help",'h', "Display this help and exit"); + cliParser->addSwitch("version", 'v', "Display version information"); + cliParser->addOption("configdir ", 'c', "Specify the directory holding configuration files, the SQlite database and the SSL Cert"); + cliParser->addOption("datadir ", 0, "DEPRECATED - Use --configdir instead"); #ifndef BUILD_CORE // put client-only arguments here cliParser->addSwitch("debugbufferswitches", 0, "Enables debugging for bufferswitches"); cliParser->addSwitch("debugmodel", 0, "Enables debugging for models"); #endif -#ifndef BUILD_QTCLIENT +#ifndef BUILD_QTUI // put core-only arguments here 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"); - cliParser->addOption("configdir ", 'c', "Specify the directory holding configuration files, the SQlite database and the SSL Cert"); - cliParser->addOption("datadir ", 0, "DEPRECATED - Use --configdir instead"); #endif #ifdef HAVE_KDE