diff options
-rw-r--r-- | lumina-desktop/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lumina-desktop/main.cpp b/lumina-desktop/main.cpp index bd26e8f4..357fd14c 100644 --- a/lumina-desktop/main.cpp +++ b/lumina-desktop/main.cpp @@ -51,6 +51,12 @@ void MessageOutput(QtMsgType type, const QMessageLogContext &context, const QStr int main(int argc, char ** argv) { + if (argc > 1) { + if (QString(argv[1]) == QString("--version")){ + qDebug() << LUtils::LuminaDesktopVersion(); + return 0; + } + } if(!QFile::exists(LOS::LuminaShare())){ qDebug() << "Lumina does not appear to be installed correctly. Cannot find: " << LOS::LuminaShare(); return 1; |