aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1cabbad..e6a2bfa 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -117,6 +117,10 @@ int main(int argc, char **argv)
CommandLineParser::addOptionDefinitions(options);
Stats::init();
CommandLineParser *args = CommandLineParser::instance();
+ if(args->contains(QLatin1String("version"))) {
+ printf("Git version: %s\n", VER);
+ return 0;
+ }
if (args->contains(QLatin1String("help")) || args->arguments().count() != 1) {
args->usage(QString(), "[Path to subversion repo]");
return 0;