diff --git a/src/Application.cpp b/src/Application.cpp
index ea2549c788..512340cd4a 100644
--- a/src/Application.cpp
+++ b/src/Application.cpp
@@ -9,6 +9,7 @@
#include "Application.h"
#include "MainWindow.h"
#include "Settings.h"
+#include "version.h"
Application::Application(int& argc, char** argv) :
QApplication(argc, argv)
@@ -71,11 +72,15 @@ Application::Application(int& argc, char** argv) :
qWarning() << qPrintable(tr("Usage: %1 [options] [db]\n").arg(argv[0]));
qWarning() << qPrintable(tr("Possible command line arguments:"));
qWarning() << qPrintable(tr(" -h, --help\t\tShow command line options"));
+ qWarning() << qPrintable(tr(" -q, --quit\t\tExit application after running scripts"));
qWarning() << qPrintable(tr(" -s, --sql [file]\tExecute this SQL file after opening the DB"));
qWarning() << qPrintable(tr(" -t, --table [table]\tBrowse this table after opening the DB"));
- qWarning() << qPrintable(tr(" -q, --quit\t\tExit application after running scripts"));
+ qWarning() << qPrintable(tr(" -v, --version\t\tDisplay the current version"));
qWarning() << qPrintable(tr(" [file]\t\tOpen this SQLite database"));
m_dontShowMainWindow = true;
+ } else if(arguments().at(i) == "-v" || arguments().at(i) == "--version") {
+ qWarning() << qPrintable(tr("This is DB Browser for SQLite version %1.").arg(APP_VERSION));
+ m_dontShowMainWindow = true;
} else if(arguments().at(i) == "-s" || arguments().at(i) == "--sql") {
// Run SQL file: If file exists add it to list of scripts to execute
if(++i >= arguments().size())
diff --git a/src/translations/sqlb_de.ts b/src/translations/sqlb_de.ts
index 52cf5c8ae3..a70a98d053 100644
--- a/src/translations/sqlb_de.ts
+++ b/src/translations/sqlb_de.ts
@@ -77,7 +77,7 @@
-s, --sql [file] Execute this SQL file after opening the DB
- -s, --sql [Datei] Führe nach dem Öffnen der Datenbank diese SQL-Datei aus
+ -s, --sql [Datei] Führe nach dem Öffnen der Datenbank diese SQL-Datei aus