tools: kwboot: Allow to mix positional arguments with option -b
Commit 9e6d71d2 ("tools: kwboot: Allow to use -b without image path as the last getopt() option") broke usage of kwboot with following arguments: kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-spl.kwb Fix parsing of option -b with optional argument again. Fixes: 9e6d71d2 ("tools: kwboot: Allow to use -b without image path as the last getopt() option") Signed-off-by: NPali Rohár <pali@kernel.org> Reported-by: NTony Dinh <mibodhi@gmail.com> Tested-by: Tony Dinh <mibodhi at gmail.com> Reviewed-by: NStefan Roese <sr@denx.de>
Showing
想要评论请 注册 或 登录