Rewrite command line option parsing
commit10383b06086835f572e311711938b1018fa95fdb
authorCaspar Schutijser <caspar@schutijser.com>
Fri, 29 May 2020 17:18:45 +0000 (29 19:18 +0200)
committerCaspar Schutijser <caspar@schutijser.com>
Fri, 29 May 2020 19:23:01 +0000 (29 21:23 +0200)
tree1d3455804b2ae237d93cf61bb66e35d5e77195bf
parent672e98ae02b397ab0441ef48093c1012461fbee1
Rewrite command line option parsing

Use QCommandLineParser for that. A couple of behavior changes:
 * Profile names starting with a '-' are now allowed.
 * Specifying an URL that doesn't start with "mailto:" is now an
   error.
 * The feature to activate debug traffic logging to disk may now be
   enabled by specifying -l in addition to --log-to-disk.
 * Specifying -p multiple times is not an error anymore; the value
   specified last is used.

As a result of using a real command line argument parser, we may now
combine arguments when invoking trojita, e.g. trojita -lp work.

While there, slightly reword some text.

Change-Id: Ic97470837b530ed60e54f513eb4b834a3a6a4f39
src/Gui/main.cpp