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>
This commit is contained in:
Vadim Bendebury
2017-03-02 15:07:13 -08:00
committed by chrome-bot
parent b1afdd76bc
commit ee1ccf4fbe

View File

@@ -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"