Make string-set options behave more like bool options
authorJens Axboe <jaxboe@fusionio.com>
Fri, 15 Jul 2011 07:09:15 +0000 (09:09 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 15 Jul 2011 07:09:15 +0000 (09:09 +0200)
commit74ba1808c32e978229eefa7cf28c08bcb73b5b5d
tree4b2d59811523d5da23bd0fd267c165d011dc5fd5
parent173dbaa47e3a477db65aa9fb1932a33d87436994
Make string-set options behave more like bool options

Before this change, string-set options (like time_based) would not
complain if passed an argument, they would just always evaluate
to being set. This is very confusing if someone uses them negated,
ala:

time_based=0

since fio would interpret that as the option being set. Now we'll
do the right thing, time_based=0 will be identical to not having
the option set. And time_based=1 or just time_based will equate
to the option being set.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
parse.c