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 | |
parent | e835afadfe84a820b698f715a01e777f8b7bf833 (diff) | |
download | busybox-w32-ad0d009e0c1968a14f17189264d3aa8008ea2e3b.tar.gz busybox-w32-ad0d009e0c1968a14f17189264d3aa8008ea2e3b.tar.bz2 busybox-w32-ad0d009e0c1968a14f17189264d3aa8008ea2e3b.zip |
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>
-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 @@ | |||
36 | //usage: "\n -s ADDR Start address" | 36 | //usage: "\n -s ADDR Start address" |
37 | 37 | ||
38 | //usage:#define nanddump_trivial_usage | 38 | //usage:#define nanddump_trivial_usage |
39 | //usage: "[-o] [--bb=padbad|skipbad] [-s ADDR] [-l LEN] [-f FILE] MTD_DEVICE" | 39 | //usage: "[-o]" IF_LONG_OPTS(" [--bb=padbad|skipbad]") " [-s ADDR] [-l LEN] [-f FILE] MTD_DEVICE" |
40 | //usage:#define nanddump_full_usage "\n\n" | 40 | //usage:#define nanddump_full_usage "\n\n" |
41 | //usage: "Dump MTD_DEVICE\n" | 41 | //usage: "Dump MTD_DEVICE\n" |
42 | //usage: "\n -o Dump oob data" | 42 | //usage: "\n -o Dump oob data" |
43 | //usage: "\n -s ADDR Start address" | 43 | //usage: "\n -s ADDR Start address" |
44 | //usage: "\n -l LEN Length" | 44 | //usage: "\n -l LEN Length" |
45 | //usage: "\n -f FILE Dump to file ('-' for stdout)" | 45 | //usage: "\n -f FILE Dump to file ('-' for stdout)" |
46 | //usage: IF_LONG_OPTS( | ||
46 | //usage: "\n --bb=METHOD:" | 47 | //usage: "\n --bb=METHOD:" |
47 | //usage: "\n skipbad: skip bad blocks" | 48 | //usage: "\n skipbad: skip bad blocks" |
48 | //usage: "\n padbad: substitute bad blocks by 0xff (default)" | 49 | //usage: "\n padbad: substitute bad blocks by 0xff (default)" |
50 | //usage: ) | ||
49 | 51 | ||
50 | #include "libbb.h" | 52 | #include "libbb.h" |
51 | #include <mtd/mtd-user.h> | 53 | #include <mtd/mtd-user.h> |