diff options
author | Mary Ruthven <mruthven@chromium.org> | 2017-03-31 14:59:29 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2018-03-13 23:50:11 +0000 |
commit | 0757958a584438328bb0ec878e665e44f8544f0b (patch) | |
tree | 1d85728286b50d34e8dbf405c08cb1fa6d60e2d2 | |
parent | 20757288b8a8bb8f31a56422239b38743f436585 (diff) | |
download | chrome-ec-0757958a584438328bb0ec878e665e44f8544f0b.tar.gz |
usb_updater: fix -b option
We want the -b option to be parsed the same way as the -u option,
because usb_updater should handle reading the file the same way. This
changes binver hasarg to be 0, so that it doesn't eat the filename.
BUG=none
BRANCH=cr50
TEST=usb_updater --binver $IMAGE
Original Change-Id: I0b868bc5d316e5fb42fc34bc746bbee868d20630
Original Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Original Reviewed-on: https://chromium-review.googlesource.com/465490
Original Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Change-Id: I264a9a5bd66f581bd0d8f8e01fa69bdc8a0f824b
Reviewed-on: https://chromium-review.googlesource.com/958708
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Tested-by: Marco Chen <marcochen@chromium.org>
Commit-Queue: Marco Chen <marcochen@chromium.org>
-rw-r--r-- | extra/usb_updater/usb_updater.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/usb_updater/usb_updater.c b/extra/usb_updater/usb_updater.c index b69ce22567..dda202690d 100644 --- a/extra/usb_updater/usb_updater.c +++ b/extra/usb_updater/usb_updater.c @@ -222,7 +222,7 @@ static char *progname; static char *short_opts = "bcd:fhpsu"; static const struct option long_opts[] = { /* name hasarg *flag val */ - {"binvers", 1, NULL, 'b'}, + {"binvers", 0, NULL, 'b'}, {"corrupt", 0, NULL, 'c'}, {"device", 1, NULL, 'd'}, {"fwver", 0, NULL, 'f'}, |