aboutsummaryrefslogtreecommitdiff
path: root/miscutils/flash_eraseall.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/flash_eraseall.c')
-rw-r--r--miscutils/flash_eraseall.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c
index 3ddd9dd99..a6ce41f27 100644
--- a/miscutils/flash_eraseall.c
+++ b/miscutils/flash_eraseall.c
@@ -82,8 +82,7 @@ int flash_eraseall_main(int argc UNUSED_PARAM, char **argv)
unsigned int flags;
char *mtd_name;
- opt_complementary = "=1";
- flags = getopt32(argv, "jNq");
+ flags = getopt32(argv, "^" "jNq" "\0" "=1");
mtd_name = argv[optind];
fd = xopen(mtd_name, O_RDWR);