init: fix --bandwidth-log without argument
authorOmar Sandoval <osandov@fb.com>
Wed, 5 Oct 2016 22:15:26 +0000 (15:15 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 11 Oct 2016 22:04:24 +0000 (16:04 -0600)
--bandwidth-log doesn't do anything with the argument that it requires,
and the documentation doesn't indicate that it takes an argument.

Fixes: b46928282e0a ("[PATCH] Add full command line parameter support")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c

diff --git a/init.c b/init.c
index c556fa29ceaf26f90507068f2c9ec9aa37f690ac..eb6f4a637caae041acf33e54a6a370a8cef97c8b 100644 (file)
--- a/init.c
+++ b/init.c
@@ -103,7 +103,7 @@ static struct option l_opts[FIO_NR_OPTIONS] = {
        },
        {
                .name           = (char *) "bandwidth-log",
-               .has_arg        = required_argument,
+               .has_arg        = no_argument,
                .val            = 'b' | FIO_CLIENT_FLAG,
        },
        {