From: Jens Axboe Date: Thu, 16 Oct 2008 06:05:53 +0000 (+0200) Subject: blktrace: accept -v (lower case) for version info as well X-Git-Tag: blktrace-1.0.0~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5d4f19d9812264bfb45427716330d0bd2529dfd9;p=blktrace.git blktrace: accept -v (lower case) for version info as well Christof Schmitt points out that the documentation uses -v but blktrace supports only -V, so change blktrace to accept both cases. Signed-off-by: Jens Axboe --- diff --git a/blktrace.c b/blktrace.c index 4d458ac..68a7c70 100644 --- a/blktrace.c +++ b/blktrace.c @@ -60,7 +60,7 @@ static char blktrace_version[] = "0.99.3"; #define DEBUGFS_TYPE 0x64626720 -#define S_OPTS "d:a:A:r:o:kw:Vb:n:D:lh:p:sI:" +#define S_OPTS "d:a:A:r:o:kw:vVb:n:D:lh:p:sI:" static struct option l_opts[] = { { .name = "dev", @@ -110,6 +110,12 @@ static struct option l_opts[] = { .flag = NULL, .val = 'w' }, + { + .name = "version", + .has_arg = no_argument, + .flag = NULL, + .val = 'v' + }, { .name = "version", .has_arg = no_argument, @@ -1853,6 +1859,7 @@ int main(int argc, char *argv[]) } break; case 'V': + case 'v': printf("%s version %s\n", argv[0], blktrace_version); return 0; case 'b':