X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=6aff6db31d9943e9cd48ec7cbfc2fc13817a5c00;hb=e2667bcfa59d0a3b7843235dd6235d912cc0c992;hp=2a33a3d801200643f96e1733444fbbb33f07d2b7;hpb=736012bf4a8b834d1adb2f4a3b0156380ecb5dcc;p=quassel.git diff --git a/src/common/main.cpp b/src/common/main.cpp index 2a33a3d8..6aff6db3 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -84,21 +84,29 @@ 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"); +#ifdef BUILD_QTUI + cliParser->addOption("configdir ", 'c', "Specify the directory holding the client configuration"); +#else + cliParser->addOption("configdir ", 'c', "Specify the directory holding configuration files, the SQlite database and the SSL certificate"); +#endif + 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("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