summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-03-02 15:07:13 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-03-13 23:50:08 +0000
commit56fe8613dad602a6390fdea0780537bb0aa4397c (patch)
tree377a5d2f7c052b5e54405ac02ab6174a21c60d22
parent2120049d20e9e621654e3a495b31fedd94700b8d (diff)
downloadchrome-ec-56fe8613dad602a6390fdea0780537bb0aa4397c.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 Original Change-Id: I6ceefa8c4dda841db63177d6134a611600a43078 Original Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original Reviewed-on: https://chromium-review.googlesource.com/448956 Original Reviewed-by: Aaron Durbin <adurbin@chromium.org> Change-Id: I5da8cf95dd496d6fef46c2f2b9d8025156f5b259 Reviewed-on: https://chromium-review.googlesource.com/958705 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.c3
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"