Skip to content
Commit c497ae70 authored by This contributor prefers not to receive mails's avatar This contributor prefers not to receive mails Committed by Stefan Roese
Browse files

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: default avatarPali Rohár <pali@kernel.org>
Reported-by: default avatarTony Dinh <mibodhi@gmail.com>
Tested-by: Tony Dinh <mibodhi at gmail.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 3782f55a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment