summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2017-03-31 14:59:29 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-03-31 18:57:01 -0700
commit24fd8060fd27f0306d5d3f91faa09d28ed892772 (patch)
tree4f1823e1896b7f244f5394848b08a6dd70dc045c
parentc76f9852c4e62d134f57f134c30d73289e4a72a7 (diff)
downloadchrome-ec-24fd8060fd27f0306d5d3f91faa09d28ed892772.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 Change-Id: I0b868bc5d316e5fb42fc34bc746bbee868d20630 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/465490 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--extra/usb_updater/usb_updater.c2
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'},