cbfstool: fix option parsing
commite887ca5a745720e3d35527e4fd4e21b8c0b3b3b9
authorPatrick Georgi <patrick@georgi-clan.de>
Sat, 9 Aug 2014 15:44:39 +0000 (9 17:44 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Sat, 9 Aug 2014 17:54:09 +0000 (9 19:54 +0200)
treeddfccc41cbaa9797ea1bc8afeb6e295403f90647
parenta0a019698d29a869eaf299cadcfda11e331f995f
cbfstool: fix option parsing

"cbfstool create -B bootblock -s size" (in this order)
would break bootblock selection.

Change-Id: I9a9f5660827c8bf60dae81b519c6f026f3aaa0f3
Found-by: Coverity Scan
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/6564
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
util/cbfstool/cbfstool.c