projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfd392b
)
microcom: require exactly one non-option
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 4 Aug 2017 00:01:45 +0000
(
02:01
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 4 Aug 2017 00:01:45 +0000
(
02:01
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/microcom.c
patch
|
blob
|
history
diff --git
a/miscutils/microcom.c
b/miscutils/microcom.c
index 14b9f3bafeaf6d1a35ebbafdceca59f414a6a5b2..f382edebb0c7f4792a368108a7b40f14fc75d3f8 100644
(file)
--- a/
miscutils/microcom.c
+++ b/
miscutils/microcom.c
@@
-74,6
+74,7
@@
int microcom_main(int argc UNUSED_PARAM, char **argv)
unsigned opts;
// fetch options
+ opt_complementary = "=1";
opts = getopt32(argv, "Xs:+d:+t:+", &speed, &delay, &timeout);
// argc -= optind;
argv += optind;