X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=01ab79e4586289571792f92c6ac551aeb4131ec6;hp=40922b653bb47d4fc755f60ac6d15b246ba7c179;hb=af569a42f6635f6abfcedeb45b730ee64d53e0b8;hpb=f6781dc095957d65e8fc1683fda1c5a5b9cbedbb diff --git a/src/common/main.cpp b/src/common/main.cpp index 40922b65..01ab79e4 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -84,23 +84,25 @@ 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"); - cliParser->addOption("migrate-backend ", 0, "Starts an interactive session and attempts to migrate your current storage backend to the new one"); - cliParser->addOption("switch-backend ", 0, "Starts an interactive session and switches your current storage backend to the new one. No migration will be done!"); + 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"); #endif #ifdef HAVE_KDE