aboutsummaryrefslogtreecommitdiff
path: root/nanddump.c
diff options
context:
space:
mode:
authorGrant Erickson <gerickson@nuovations.com>2008-09-07 20:45:51 +0000
committerJosh Boyer <jwboyer@gmail.com>2008-09-08 10:28:49 -0400
commit864d88dc1bb2127b9b714c5d15083ca8cb5a93c2 (patch)
tree28a544b0f2c75c4084476c5c9199376c19170c05 /nanddump.c
parentc5a2630fdb64ecb2991deb609a670b1c1a856905 (diff)
nanddump: 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>
Diffstat (limited to 'nanddump.c')
-rw-r--r--nanddump.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/nanddump.c b/nanddump.c
index 44a1014..b8332f9 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -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);
}