commit | a88c8c14172004a1b6518ca181fe7f60c64c2c1a | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Wed Apr 24 22:25:22 2013 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Apr 24 22:25:22 2013 -0600 |
tree | 4c64c56d17c3d697dc3c43f19837494e37f4b9ec | |
parent | 30b5d57f63c75ca60aca97ff2aa6f652ac775c30 [diff] |
Ensure we stop parsing and exit if a command line option fails Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/init.c b/init.c index ff9b6d4..b330925 100644 --- a/init.c +++ b/init.c
@@ -1716,6 +1716,8 @@ } ret = fio_cmd_option_parse(td, opt, val); + if (ret) + do_exit++; if (!ret && !strcmp(opt, "ioengine")) { free_ioengine(td);