]> git.baikalelectronics.ru Git - uboot.git/commit
tools: dumpimage: Simplify arguments
authorMartyn Welch <martyn.welch@collabora.com>
Sat, 26 Jan 2019 02:31:51 +0000 (02:31 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 1 Feb 2019 19:13:46 +0000 (14:13 -0500)
commit446bcb9263557f25edb68819db8d16023b6aefa8
tree9015d3c13da9db66af9920b156f18b91f75ba79a
parentac898da19b54983810b4161be993c53f447adc88
tools: dumpimage: Simplify arguments

The dump image utility has very confusing syntax. If called to list image
contents ("-l") it takes the image name as a positional argument. If the
utility is called to extract something from the image, the image must be
provided via the optional argument "-i" as well as the positional argument
but the value passed in the positional argument will be completely
ignored.

Simplify dumpimage by always providing the image as the first positional
argument. Assume we want to dump something from the image if we do not
provide the "-l" option for now.

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