diff options
author | Baruch Siach <baruch@tkos.co.il> | 2014-12-18 00:27:26 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-12-18 11:55:08 +0100 |
commit | ad0d009e0c1968a14f17189264d3aa8008ea2e3b (patch) | |
tree | 9175cb58ad73d3c8f6c77c646e143728adee2616 /miscutils/nandwrite.c | |
parent | e835afadfe84a820b698f715a01e777f8b7bf833 (diff) |
nanddump: don't show --bb in usage when disabled
The --bb options now depends on LONG_OPTS. Omit mentions of --bb from usage
text when LONG_OPTS is disabled.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/nandwrite.c')
-rw-r--r-- | miscutils/nandwrite.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index c825fc315..247fc72f4 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c @@ -36,16 +36,18 @@ //usage: "\n -s ADDR Start address" //usage:#define nanddump_trivial_usage -//usage: "[-o] [--bb=padbad|skipbad] [-s ADDR] [-l LEN] [-f FILE] MTD_DEVICE" +//usage: "[-o]" IF_LONG_OPTS(" [--bb=padbad|skipbad]") " [-s ADDR] [-l LEN] [-f FILE] MTD_DEVICE" //usage:#define nanddump_full_usage "\n\n" //usage: "Dump MTD_DEVICE\n" //usage: "\n -o Dump oob data" //usage: "\n -s ADDR Start address" //usage: "\n -l LEN Length" //usage: "\n -f FILE Dump to file ('-' for stdout)" +//usage: IF_LONG_OPTS( //usage: "\n --bb=METHOD:" //usage: "\n skipbad: skip bad blocks" //usage: "\n padbad: substitute bad blocks by 0xff (default)" +//usage: ) #include "libbb.h" #include <mtd/mtd-user.h> |