summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-09 14:36:45 -0700
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-08-16 17:14:02 +0300
commite7b50d4366c6b72241aa0c0c2472103305ee0ed5 (patch)
tree9b6de61ae8b12cdb3c8fa2e78b4ebb6b2dd5f075
parent3ebad2f6f7e19b47dea5048a1e3d97a12d0479e5 (diff)
mtdinfo: fixup "example usage" help section
Line up columns better so that everything is more readable. Remove "Example 1" since `mtdinfo' does not print information when not given any arguments. Remove "...UBI layout information" from description of Example 4, since Example 4 (now 3) doesn't include the `-u' flag. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
-rw-r--r--ubi-utils/mtdinfo.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ubi-utils/mtdinfo.c b/ubi-utils/mtdinfo.c
index cd55dce..1c3a46f 100644
--- a/ubi-utils/mtdinfo.c
+++ b/ubi-utils/mtdinfo.c
@@ -68,12 +68,10 @@ static const char usage[] =
" " PROGRAM_NAME " --all [--ubi-info | -u]\n"
" " PROGRAM_NAME " [--help | --version]\n"
"\n"
-"Example 1: " PROGRAM_NAME " - (no arguments) print general MTD information\n"
-"Example 2: " PROGRAM_NAME " /dev/mtd0 - print information MTD device /dev/mtd0\n"
-"Example 3: " PROGRAM_NAME " /dev/mtd0 -u - print information MTD device /dev/mtd0\n"
-"\t\t\t\tand include UBI layout information\n"
-"Example 4: " PROGRAM_NAME " -a - print information about all MTD devices\n"
-"\t\t\tand include UBI layout information\n";
+"Example 1: " PROGRAM_NAME " /dev/mtd0 print information MTD device /dev/mtd0\n"
+"Example 2: " PROGRAM_NAME " /dev/mtd0 -u print information MTD device /dev/mtd0\n"
+"\t\t\t\t and include UBI layout information\n"
+"Example 3: " PROGRAM_NAME " -a print information about all MTD devices\n";
static const struct option long_options[] = {
{ .name = "ubi-info", .has_arg = 0, .flag = NULL, .val = 'u' },