summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 441a2c5..b9823e3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,19 +1,18 @@
#include "mainwindow.h"
+#include "version.h"
#include <QApplication>
#include <QCommandLineParser>
-#define PROJECT_NAME "qimv"
-
int main(int argc, char **argv) {
QApplication app(argc, argv);
- app.setApplicationName("qimv");
- app.setApplicationVersion("0.1.0");
+ app.setApplicationName(QIMV_NAME);
+ app.setApplicationVersion(QIMV_VERSION);
QCommandLineParser parser;
parser.setApplicationDescription("Quick image viewer");
parser.addHelpOption();
parser.addVersionOption();
- parser.addPositionalArgument("image", "Image to show.");
+ parser.addPositionalArgument("path(s)", "Image(s) to show.");
parser.process(app);