summaryrefslogtreecommitdiff
path: root/miscutils/flashcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/flashcp.c')
-rw-r--r--miscutils/flashcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/flashcp.c b/miscutils/flashcp.c
index c10b96e..858cee1 100644
--- a/miscutils/flashcp.c
+++ b/miscutils/flashcp.c
@@ -69,8 +69,7 @@ int flashcp_main(int argc UNUSED_PARAM, char **argv)
RESERVE_CONFIG_UBUFFER(buf, BUFSIZE);
RESERVE_CONFIG_UBUFFER(buf2, BUFSIZE);
- opt_complementary = "=2"; /* exactly 2 non-option args: file, dev */
- /*opts =*/ getopt32(argv, "v");
+ /*opts =*/ getopt32(argv, "^" "v" "\0" "=2"/*exactly 2 non-option args: file,dev*/);
argv += optind;
// filename = *argv++;
// devicename = *argv;