diff options
-rw-r--r-- | memtool.1 | 7 | ||||
-rw-r--r-- | memtool.c | 5 |
2 files changed, 12 insertions, 0 deletions
@@ -2,6 +2,8 @@ .SH NAME memtool \- display and modify memory .SH SYNOPSIS +.B memtool -V +.br .B memtool md .RB [\| \-b \||\| \-w \||\| \-l \||\| \-q \|] .RB [\| \-x \|] @@ -35,6 +37,11 @@ the tool, but either the machine or the caller. .SH OPTIONS .TP +.B \-V +Dump memtool version and exit + +.SH COMMON OPTIONS FOR SUBCOMMANDS +.TP .B \-b Use byte wise (8-bit) access .TP @@ -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) { |