X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=b12d642ebd7abb9eb29a52fcf4424025a939b65f;hp=9c468fda7b95e712d9fab5d095c21a283233896f;hb=7b4bac1b744a407d51f0ece67e0d531206ddad0b;hpb=af5ee11e78a6c98f755d0cc5e3bef77028b227dd diff --git a/src/common/main.cpp b/src/common/main.cpp index 9c468fda..b12d642e 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -41,11 +41,16 @@ # include "kcmdlinewrapper.h" #endif +#if !defined(BUILD_CORE) && defined(STATIC) +#include +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" @@ -87,11 +92,15 @@ int main(int argc, char **argv) { #endif #ifndef BUILD_QTCLIENT // 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("datadir ", 0, "Specify the directory holding datafiles like the Sqlite DB and the SSL Cert"); + 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("select-backend ", 0, "Starts an interactive session and switches your current storage backend to the new one. No migration will be done!"); #endif #ifdef HAVE_KDE