summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Erickson <gerickson@nuovations.com>2008-09-07 18:29:11 +0000
committerJosh Boyer <jwboyer@gmail.com>2008-09-08 10:27:37 -0400
commit2c684ab9b4fade11d6c6377921556373256c1a0c (patch)
treef19b5b2c830f85e4fea0927520955b531b4c3051
parent6c812a3b2691cc6c6898bdc52e4d90c506e69be8 (diff)
nandwrite: Clean-up Usage Output
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>
-rw-r--r--nandwrite.c37
1 files changed, 20 insertions, 17 deletions
diff --git a/nandwrite.c b/nandwrite.c
index 5fbed41..b7cd72e 100644
--- a/nandwrite.c
+++ b/nandwrite.c
@@ -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)