# include "kcmdlinewrapper.h"
#endif
+#if !defined(BUILD_CORE) && defined(STATIC)
+#include <QtPlugin>
+Q_IMPORT_PLUGIN(qjpeg)
+Q_IMPORT_PLUGIN(qgif)
+#endif
+
#include "cliparser.h"
#include "quassel.h"
int main(int argc, char **argv) {
- Q_INIT_RESOURCE(i18n);
// Setup build information and version string
# include "version.gen"
// put shared client&core arguments here
cliParser->addSwitch("debug",'d', "Enable debug output");
cliParser->addSwitch("help",'h', "Display this help and exit");
+ cliParser->addOption("configdir <path>", 'c', "Specify the directory holding configuration files, the SQlite database and the SSL Cert");
+ cliParser->addOption("datadir <path>", 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 <address>[,<address[,...]]>", 0, "The address(es) quasselcore will listen on", "0.0.0.0,::");
cliParser->addOption("port <port>",'p', "The port quasselcore will listen at", QString("4242"));
cliParser->addSwitch("norestore", 'n', "Don't restore last core's state");
cliParser->addOption("logfile <path>", 'l', "Path to logfile");
cliParser->addOption("loglevel <level>", 'L', "Loglevel Debug|Info|Warning|Error", "Info");
- cliParser->addOption("configdir <path>", 'c', "Specify the directory holding configuration files, the SQlite database and the SSL Cert");
- cliParser->addOption("datadir <path>", 0, "DEPRECATED - Use --configdir instead");
+ cliParser->addOption("select-backend <backendidentifier>", 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");
#endif
#ifdef HAVE_KDE