commit | ff52be3d9ff93cc5e823a75c41d48f62f842feb8 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Nov 26 20:19:59 2013 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Nov 26 20:19:59 2013 -0700 |
tree | 24c67033326a5ed40a043dce9ad4532bd82c4c2f | |
parent | f01b34ae759afccf39c1bf47972e45d91448e7bb [diff] [blame] |
init: allow FIO_OPT_STR_SET options to have an optional argument Makes them work like a bool. Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/options.c b/options.c index 4b4c251..a700e4d 100644 --- a/options.c +++ b/options.c
@@ -3277,7 +3277,7 @@ lopt->name = (char *) name; lopt->val = val; if (o->type == FIO_OPT_STR_SET) - lopt->has_arg = no_argument; + lopt->has_arg = optional_argument; else lopt->has_arg = required_argument; }