]> www.infradead.org Git - mtd-utils.git/commitdiff
nanddump: Clean-up Usage Output
authorGrant Erickson <gerickson@nuovations.com>
Sun, 7 Sep 2008 20:45:51 +0000 (20:45 +0000)
committerJosh Boyer <jwboyer@gmail.com>
Mon, 8 Sep 2008 14:28:49 +0000 (10:28 -0400)
Realign help usage output to make it more explict when a description
needs to be wrapped.

Use sentence case for the help usage output option short descriptions.

Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
nanddump.c

index 44a10147f719977e7192ada691ae4857abefa3da..b8332f994acce0a67e746a2adb289060c7713e4a 100644 (file)
@@ -39,19 +39,21 @@ static struct nand_oobinfo none_oobinfo = {
 
 static void display_help (void)
 {
-       printf("Usage: nanddump [OPTIONS] MTD-device\n"
-                       "Dumps the contents of a nand mtd partition.\n"
-                       "\n"
-                       "           --help              display this help and exit\n"
-                       "           --version           output version information and exit\n"
-                       "-f file    --file=file          dump to file\n"
-                       "-i         --ignoreerrors       ignore errors\n"
-                       "-l length  --length=length      length\n"
-                       "-n         --noecc              read without error correction\n"
-                       "-o         --omitoob            omit oob data\n"
-                       "-b         --omitbad            omit bad blocks from the dump\n"
-                       "-p         --prettyprint        print nice (hexdump)\n"
-                       "-s addr    --startaddress=addr  start address\n");
+       printf(
+"Usage: nanddump [OPTIONS] MTD-device\n"
+"Dumps the contents of a nand mtd partition.\n"
+"\n"
+"           --help               Display this help and exit\n"
+"           --version            Output version information and exit\n"
+"-f file    --file=file          Dump to file\n"
+"-i         --ignoreerrors       Ignore errors\n"
+"-l length  --length=length      Length\n"
+"-n         --noecc              Read without error correction\n"
+"-o         --omitoob            Omit oob data\n"
+"-b         --omitbad            Omit bad blocks from the dump\n"
+"-p         --prettyprint        Print nice (hexdump)\n"
+"-s addr    --startaddress=addr  Start address\n"
+       );
        exit(EXIT_SUCCESS);
 }