summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-09 06:21:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-09 16:21:46 -0800
commitf16a488b89676817f384ac99d5b2232a511e1b6d (patch)
treea4d3e45d3e87ea3c5a70b75fea33810ae186c6be
parentbcabe6ec9f255b1c789cbcbef820e702489c7254 (diff)
downloadsubsurface-f16a488b89676817f384ac99d5b2232a511e1b6d.tar.gz
Print version when run in verbose mode
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/subsurfacestartup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c
index ca6a198ad..4a82aeff4 100644
--- a/core/subsurfacestartup.c
+++ b/core/subsurfacestartup.c
@@ -213,6 +213,7 @@ void parse_argument(const char *arg)
print_help();
exit(0);
case 'v':
+ print_version();
verbose++;
continue;
case 'q':
@@ -241,6 +242,7 @@ void parse_argument(const char *arg)
return;
}
if (strcmp(arg, "--verbose") == 0) {
+ print_version();
verbose++;
return;
}