tools: dumpimage: Clarify help
authorMartyn Welch <martyn.welch@collabora.com>
Sat, 26 Jan 2019 02:31:54 +0000 (02:31 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 1 Feb 2019 19:13:46 +0000 (14:13 -0500)
Help message isn't clear over the use of the "-T" option (it's to declare
the type of image that the tool is operating on), which also is optional
as it defaults to the default image type. It's also missing a description
of the "-o" option, so add it.

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

index 5c9ad36322224cfe260170834146a62442cdbbb3..ee3d41dda4d4b2b0ed46f2b430c5d01ab95812d8 100644 (file)
@@ -196,9 +196,10 @@ static void usage(void)
                "          -l ==> list image header information\n",
                params.cmdname);
        fprintf(stderr,
-               "       %s -T type [-p position] [-o outfile] image\n"
-               "          -T ==> set image type to 'type'\n"
-               "          -p ==> 'position' (starting at 0) of the component to extract from image\n",
+               "       %s [-T type] [-p position] [-o outfile] image\n"
+               "          -T ==> declare image type as 'type'\n"
+               "          -p ==> 'position' (starting at 0) of the component to extract from image\n"
+               "          -o ==> extract component to file 'outfile'\n",
                params.cmdname);
        fprintf(stderr,
                "       %s -h ==> print usage information and exit\n",