X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=14329f617e3fa0521d15ff4598d1a3dbac014d35;hb=6f442c275cc5a2d5f1084ac2ceca5f1ffce1d024;hp=6aadb3a0e6d7dba215bd4d5e48d91d52ffb89f29;hpb=68802b36b99d01431710dafb1bc03580851946d4;p=quassel.git diff --git a/src/common/main.cpp b/src/common/main.cpp index 6aadb3a0..14329f61 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -84,6 +84,13 @@ 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 @@ -97,8 +104,6 @@ int main(int argc, char **argv) { 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