nanddump: don't show --bb in usage when disabled
authorBaruch Siach <baruch@tkos.co.il>
Wed, 17 Dec 2014 22:27:26 +0000 (00:27 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 18 Dec 2014 10:55:08 +0000 (11:55 +0100)
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>
miscutils/nandwrite.c

index c825fc31519d1d6a76235a073ec69b46365bd0db..247fc72f4becb5a145d822ef8ac46256c2339e51 100644 (file)
 //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>