diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-03-02 15:07:13 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-03-02 18:34:10 -0800 |
commit | ee1ccf4fbe7edf9817cb1d64043dbbdc926b9be2 (patch) | |
tree | 682778b9a438062e123c69d8b830ea5101833b90 /extra | |
parent | b1afdd76bc3f7b35a2cdca817684ebe224a4c9a9 (diff) | |
download | chrome-ec-ee1ccf4fbe7edf9817cb1d64043dbbdc926b9be2.tar.gz |
usb_updater: fix command line options description
The -b command line option should not be described as requiring a
parameter, as the binary file is given to most of invocations of
usb_updater.
Also adding the missing -p command line option description.
BRANCH=none
BUG=none
TEST='usb_updater -b <file name>' does not fail any more
Change-Id: I6ceefa8c4dda841db63177d6134a611600a43078
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/448956
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r-- | extra/usb_updater/usb_updater.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/usb_updater/usb_updater.c b/extra/usb_updater/usb_updater.c index 123bb31c0e..e688b57cf6 100644 --- a/extra/usb_updater/usb_updater.c +++ b/extra/usb_updater/usb_updater.c @@ -218,7 +218,7 @@ struct transfer_descriptor { static uint32_t protocol_version; static char *progname; -static char *short_opts = "b:cd:fhpsu"; +static char *short_opts = "bcd:fhpsu"; static const struct option long_opts[] = { /* name hasarg *flag val */ {"binvers", 1, NULL, 'b'}, @@ -333,6 +333,7 @@ static void usage(int errs) " -d,--device VID:PID USB device (default %04x:%04x)\n" " -f,--fwver Report running firmware versions.\n" " -h,--help Show this message\n" + " -p,--post_reset Request post reset after transfer\n" " -s,--systemdev Use /dev/tmp0 (-d is ignored)\n" " -u,--upstart " "Upstart mode (strict header checks)\n" |