tools: dumpimage: Add help option and make error paths consistent
authorMartyn Welch <martyn.welch@collabora.com>
Sat, 26 Jan 2019 02:31:53 +0000 (02:31 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 1 Feb 2019 19:13:46 +0000 (14:13 -0500)
commit65a80b43b308bfae0b732765f75c25e5f65b9d84
tree7e3a21d61ac43df6b44bc6307ca1045fb9443e46
parent11e3c1fd3bd8fd0a91d502fa4742749f877867bb
tools: dumpimage: Add help option and make error paths consistent

The utility dumpimage has error paths that display the usage and others
that exit without displaying usage. Add an explicit help option to
dumpimage to display the usage and remove it's use in error paths to make
the error messages more obvious and errors paths more consistent.

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
tools/dumpimage.c