summaryrefslogtreecommitdiffstats
path: root/memtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'memtool.c')
-rw-r--r--memtool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/memtool.c b/memtool.c
index b790c8e..9dc594d 100644
--- a/memtool.c
+++ b/memtool.c
@@ -479,6 +479,11 @@ int main(int argc, char **argv)
if (!strcmp(basename(argv[0]), "memtool")) {
argv++;
argc--;
+
+ if (!strcmp(argv[0], "-V")) {
+ printf("%s\n", PACKAGE_STRING);
+ return EXIT_SUCCESS;
+ }
}
if (argc < 1) {