aboutsummaryrefslogtreecommitdiff
path: root/miscutils/ubi_tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/ubi_tools.c')
-rw-r--r--miscutils/ubi_tools.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c
index 4364bc807..8e55e9577 100644
--- a/miscutils/ubi_tools.c
+++ b/miscutils/ubi_tools.c
@@ -134,8 +134,8 @@ int ubi_tools_main(int argc UNUSED_PARAM, char **argv)
134#define OPTION_a (1 << 5) 134#define OPTION_a (1 << 5)
135#define OPTION_t (1 << 6) 135#define OPTION_t (1 << 6)
136 if (do_mkvol) { 136 if (do_mkvol) {
137 opt_complementary = "-1:d+:n+:a+:O+"; 137 opt_complementary = "-1";
138 opts = getopt32(argv, "md:n:N:s:a:t:O:", 138 opts = getopt32(argv, "md:+n:+N:s:a:+t:O:+",
139 &dev_num, &vol_id, 139 &dev_num, &vol_id,
140 &vol_name, &size_bytes_str, &alignment, &type, 140 &vol_name, &size_bytes_str, &alignment, &type,
141 &vid_hdr_offset 141 &vid_hdr_offset
@@ -146,8 +146,8 @@ int ubi_tools_main(int argc UNUSED_PARAM, char **argv)
146 opts = getopt32(argv, "s:at", &size_bytes_str); 146 opts = getopt32(argv, "s:at", &size_bytes_str);
147 opts *= OPTION_s; 147 opts *= OPTION_s;
148 } else { 148 } else {
149 opt_complementary = "-1:m+:d+:n+:a+"; 149 opt_complementary = "-1";
150 opts = getopt32(argv, "m:d:n:N:s:a:t:", 150 opts = getopt32(argv, "m:+d:+n:+N:s:a:+t:",
151 &mtd_num, &dev_num, &vol_id, 151 &mtd_num, &dev_num, &vol_id,
152 &vol_name, &size_bytes_str, &alignment, &type 152 &vol_name, &size_bytes_str, &alignment, &type
153 ); 153 );