From 8e7ef4d9dbd0d5daefb53c23facaf8e04f63c46c Mon Sep 17 00:00:00 2001 From: Anders Hafreager Date: Fri, 5 May 2017 14:51:31 +0200 Subject: [PATCH] Added version argument. --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 82e73c27..210b58e0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -148,6 +148,11 @@ int main(int argc, char *argv[]) if(strcmp(argv[1], "--showdatadir")==0) { showDataDir(); } + + if(strcmp(argv[1], "--version")==0) { + qDebug() << "2.0"; + exit(0); + } } copyExamplesToLocalFolder();