common: Rework command line option handling
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 30 Jul 2018 22:15:52 +0000 (00:15 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commitcc9f5099567634673f181aa49ae0b5d19bf93f7c
treec28ca2ed68fc1d45d7831b16b4ac35e33a2d2ba5
parentce250a863bce3198096e65d4c7a68269495302dd
common: Rework command line option handling

Since we can now rely on Qt5's QCommandLineParser, there is
no longer a need for an abstraction for command line parsing.
Use QCommandLineParser directly, and remove the now obsolete
AbstractCliParser and its various implementations.

Move command line parsing into Quassel::init(), which allows for
using translated strings. Make user-visible strings translateable.

Remove the long-deprecated --datadir option for now (may come
back if we decide to allow for specifying the database location
independently of config files).
12 files changed:
src/common/CMakeLists.txt
src/common/abstractcliparser.h [deleted file]
src/common/cliparser.cpp [deleted file]
src/common/cliparser.h [deleted file]
src/common/main.cpp
src/common/qt5cliparser.cpp [deleted file]
src/common/qt5cliparser.h [deleted file]
src/common/quassel.cpp
src/common/quassel.h
src/qtui/qtuiapplication.cpp
src/uisupport/kcmdlinewrapper.cpp [deleted file]
src/uisupport/kcmdlinewrapper.h [deleted file]