]> www.infradead.org Git - mtd-utils.git/commitdiff
nandwrite: Clean-up Usage Output
authorGrant Erickson <gerickson@nuovations.com>
Sun, 7 Sep 2008 18:29:11 +0000 (18:29 +0000)
committerJosh Boyer <jwboyer@gmail.com>
Mon, 8 Sep 2008 14:27:37 +0000 (10:27 -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>
nandwrite.c

index 5fbed4143793fe3f2fa5dad044da071c3477d1a9..b7cd72e261806f9ba1ae364f1e56b2dd54da1a17 100644 (file)
@@ -73,23 +73,26 @@ static struct nand_oobinfo autoplace_oobinfo = {
 
 static void display_help (void)
 {
-       printf("Usage: nandwrite [OPTION] MTD_DEVICE INPUTFILE\n"
-                       "Writes to the specified MTD device.\n"
-                       "\n"
-                       "  -a, --autoplace      Use auto oob layout\n"
-                       "  -j, --jffs2          force jffs2 oob layout (legacy support)\n"
-                       "  -y, --yaffs          force yaffs oob layout (legacy support)\n"
-                       "  -f, --forcelegacy    force legacy support on autoplacement enabled mtd device\n"
-                       "  -m, --markbad                mark blocks bad if write fails\n"
-                       "  -n, --noecc          write without ecc\n"
-                       "  -o, --oob            image contains oob data\n"
-                       "  -s addr, --start=addr set start address (default is 0)\n"
-                       "  -p, --pad             pad to page size\n"
-                       "  -b, --blockalign=1|2|4 set multiple of eraseblocks to align to\n"
-                       "  -q, --quiet          don't display progress messages\n"
-                       "      --help           display this help and exit\n"
-                       "      --version                output version information and exit\n");
-       exit(0);
+       printf(
+"Usage: nandwrite [OPTION] MTD_DEVICE INPUTFILE\n"
+"Writes to the specified MTD device.\n"
+"\n"
+"  -a, --autoplace         Use auto oob layout\n"
+"  -j, --jffs2             Force jffs2 oob layout (legacy support)\n"
+"  -y, --yaffs             Force yaffs oob layout (legacy support)\n"
+"  -f, --forcelegacy       Force legacy support on autoplacement-enabled mtd\n"
+"                          device\n"
+"  -m, --markbad           Mark blocks bad if write fails\n"
+"  -n, --noecc             Write without ecc\n"
+"  -o, --oob               Image contains oob data\n"
+"  -s addr, --start=addr   Set start address (default is 0)\n"
+"  -p, --pad               Pad to page size\n"
+"  -b, --blockalign=1|2|4  Set multiple of eraseblocks to align to\n"
+"  -q, --quiet             Don't display progress messages\n"
+"      --help              Display this help and exit\n"
+"      --version           Output version information and exit\n"
+       );
+       exit (EXIT_SUCCESS);
 }
 
 static void display_version (void)