Add CLI arguments parsing + --start-in-tray

- Loading a QML file in place of src/gui/UI.qml is now possible via
  -l / --load-qml instead of taking the first positional argument

- New option to start application in tray without showing a window

- --help and --version
This commit is contained in:
miruka
2021-01-09 04:46:56 -04:00
parent 50d4aae188
commit fda5bc0039
5 changed files with 68 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ Automatically rebuild and restart the application when source files change.
CONFIG+=dev will be passed to qmake, see mirage.pro.
The application will be launched with `-name dev`, which sets the first
part of the WM_CLASS as returned by xprop on Linux.
Any other arguments will be passed to the app, see `mirage --help`.
Use `pip3 install --user -U requirements-dev.txt` before running this."""