Christof Schmitt <christof.schmitt@de.ibm.com> points out that the
documentation uses -v but blktrace supports only -V, so change
blktrace to accept both cases.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
#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",
.flag = NULL,
.val = 'w'
},
+ {
+ .name = "version",
+ .has_arg = no_argument,
+ .flag = NULL,
+ .val = 'v'
+ },
{
.name = "version",
.has_arg = no_argument,
}
break;
case 'V':
+ case 'v':
printf("%s version %s\n", argv[0], blktrace_version);
return 0;
case 'b':