aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-09 14:36:44 -0700
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-08-16 17:14:01 +0300
commit3ebad2f6f7e19b47dea5048a1e3d97a12d0479e5 (patch)
tree2e5922fad8bbab5f43b1bfc4f3491d41f57a8d11 /ubi-utils
parentd53c03b0989f8354a7e4dbb947a150fc7fe3f6d1 (diff)
mtdinfo: restructure help message
We weren't very consistent in how we listed our options in the mtdinfo help string (listing short options, long options, or both). Plus, not all options are inter-operable, so we should distinguish this somewhat. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/mtdinfo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ubi-utils/mtdinfo.c b/ubi-utils/mtdinfo.c
index 0a20c76..cd55dce 100644
--- a/ubi-utils/mtdinfo.c
+++ b/ubi-utils/mtdinfo.c
@@ -64,8 +64,10 @@ static const char optionsstr[] =
"-V, --version print program version";
static const char usage[] =
-"Usage: " PROGRAM_NAME " <MTD device node file name> [-u] [-M] [-h] [-V] [--ubi-info] [--help]\n"
-"\t\t[--version]\n"
+"Usage: " PROGRAM_NAME " <MTD node file path> [--map | -M] [--ubi-info | -u]\n"
+" " 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"