From f49af470bccb6097088e6542931530b7f305ac0b Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Mon, 25 Aug 2008 21:09:50 +0200 Subject: ubi-utils: fixed and enhanced '--flash-image' option The '--flash-image' option of 'ubiformat' requires an argument and '.has_arg' must not be 0 hence. The patch adds this option to the commandline synopsis too. Signed-off-by: Enrico Scholz Signed-off-by: Artem Bityutskiy --- ubi-utils/new-utils/src/ubiformat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ubi-utils/new-utils/src') diff --git a/ubi-utils/new-utils/src/ubiformat.c b/ubi-utils/new-utils/src/ubiformat.c index 1fa14b3..c2888e0 100644 --- a/ubi-utils/new-utils/src/ubiformat.c +++ b/ubi-utils/new-utils/src/ubiformat.c @@ -92,7 +92,8 @@ static const char *usage = "\t\t\t[-x ] [-E ] [-s ] [-O ] [-n]\n" "\t\t\t[--help] [--version] [--yes] [--verbose] [--quiet]\n" "\t\t\t[--ec=] [--vid-hdr-offset=]\n" -"\t\t\t[--ubi-ver=] [--no-volume-table]\n\n" +"\t\t\t[--ubi-ver=] [--no-volume-table]\n" +"\t\t\t[--flash-image=]\n\n" "Example 1: " PROGRAM_NAME " /dev/mtd0 -y - format MTD device number 0 and do\n" " not ask questions.\n" @@ -103,7 +104,7 @@ static const struct option long_options[] = { { .name = "sub-page-size", .has_arg = 1, .flag = NULL, .val = 's' }, { .name = "vid-hdr-offset", .has_arg = 1, .flag = NULL, .val = 'O' }, { .name = "no-volume-table", .has_arg = 0, .flag = NULL, .val = 'n' }, - { .name = "flash-image", .has_arg = 0, .flag = NULL, .val = 'f' }, + { .name = "flash-image", .has_arg = 1, .flag = NULL, .val = 'f' }, { .name = "yes", .has_arg = 0, .flag = NULL, .val = 'y' }, { .name = "erase-counter", .has_arg = 1, .flag = NULL, .val = 'e' }, { .name = "quiet", .has_arg = 0, .flag = NULL, .val = 'q' }, -- cgit v1.2.3