From 8315cec7c17cbd228431c552bd1bf10d5f1689db Mon Sep 17 00:00:00 2001 From: Jon Povey Date: Thu, 2 Sep 2010 11:48:30 +0900 Subject: ubi-utils: reformat help text to fit in 80 columns Reformat the help text of ubiattach and ubidetach to display nicely on 80 column terminals, also fix a couple of bits that did not make sense. Signed-off-by: Jon Povey Signed-off-by: Artem Bityutskiy --- ubi-utils/src/ubiattach.c | 20 +++++++++----------- ubi-utils/src/ubidetach.c | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'ubi-utils') diff --git a/ubi-utils/src/ubiattach.c b/ubi-utils/src/ubiattach.c index 4454c38..5a7d2cf 100644 --- a/ubi-utils/src/ubiattach.c +++ b/ubi-utils/src/ubiattach.c @@ -56,17 +56,15 @@ static const char *doc = PROGRAM_NAME " version " PROGRAM_VERSION " - a tool to attach MTD device to UBI."; static const char *optionsstr = -"-d, --devn= the number to assign to the newly created UBI device\n" -" (the number is assigned automatically if this is not\n" -" specified\n" -"-p, --dev-path= path to MTD device node to attach\n" -"-m, --mtdn= MTD device number to attach (alternative method, e.g\n" -" if the character device node does not exist)\n" -"-O, --vid-hdr-offset VID header offset (do not specify this unless you\n" -" really know what you do and the optimal defaults will\n" -" be used)\n" -"-h, --help print help message\n" -"-V, --version print program version"; +"-d, --devn= the number to assign to the newly created UBI device\n" +" (assigned automatically if this is not specified)\n" +"-p, --dev-path= path to MTD device node to attach\n" +"-m, --mtdn= MTD device number to attach (alternative method, e.g\n" +" if the character device node does not exist)\n" +"-O, --vid-hdr-offset VID header offset (do not specify this unless you really\n" +" know what you are doing, the default should be optimal)\n" +"-h, --help print help message\n" +"-V, --version print program version"; static const char *usage = "Usage: " PROGRAM_NAME " []\n" diff --git a/ubi-utils/src/ubidetach.c b/ubi-utils/src/ubidetach.c index c4c05a5..e0bc050 100644 --- a/ubi-utils/src/ubidetach.c +++ b/ubi-utils/src/ubidetach.c @@ -50,7 +50,7 @@ static struct args args = { }; static const char *doc = PROGRAM_NAME " version " PROGRAM_VERSION -" - a tool to remove UBI devices (detach MTD devices from UBI)"; +" - tool to remove UBI devices (detach MTD devices from UBI)"; static const char *optionsstr = "-d, --devn= UBI device number to delete\n" -- cgit v1.2.3