From ee1ccf4fbe7edf9817cb1d64043dbbdc926b9be2 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 2 Mar 2017 15:07:13 -0800 Subject: [PATCH] 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 ' does not fail any more Change-Id: I6ceefa8c4dda841db63177d6134a611600a43078 Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/448956 Reviewed-by: Aaron Durbin --- extra/usb_updater/usb_updater.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"