diff options
Diffstat (limited to 'miscutils/nandwrite.c')
| -rw-r--r-- | miscutils/nandwrite.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index 14b1ed056..80a005821 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c | |||
| @@ -123,15 +123,12 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv) | |||
| 123 | const char *opt_s = "0", *opt_f = "-", *opt_l, *opt_bb; | 123 | const char *opt_s = "0", *opt_f = "-", *opt_l, *opt_bb; |
| 124 | 124 | ||
| 125 | if (IS_NANDDUMP) { | 125 | if (IS_NANDDUMP) { |
| 126 | opt_complementary = "=1"; | 126 | opts = getopt32long(argv, "^" "ons:f:l:" "\0" "=1", |
| 127 | #if ENABLE_LONG_OPTS | 127 | "bb\0" Required_argument "\xff", /* no short equivalent */ |
| 128 | applet_long_options = | 128 | &opt_s, &opt_f, &opt_l, &opt_bb |
| 129 | "bb\0" Required_argument "\xff"; /* no short equivalent */ | 129 | ); |
| 130 | #endif | ||
| 131 | opts = getopt32(argv, "ons:f:l:", &opt_s, &opt_f, &opt_l, &opt_bb); | ||
| 132 | } else { /* nandwrite */ | 130 | } else { /* nandwrite */ |
| 133 | opt_complementary = "-1:?2"; | 131 | opts = getopt32(argv, "^" "pns:" "\0" "-1:?2", &opt_s); |
| 134 | opts = getopt32(argv, "pns:", &opt_s); | ||
| 135 | } | 132 | } |
| 136 | argv += optind; | 133 | argv += optind; |
| 137 | 134 | ||
