aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-04 02:01:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-04 02:01:45 +0200
commit4dc86699b57ff35c287ca396d562ec206776694a (patch)
tree3b11864398568f7d7ebdf826b63e6cffeef7f6a5
parentcfd392bea9f52539baae9be4833075e464075958 (diff)
downloadbusybox-4dc86699b57ff35c287ca396d562ec206776694a.tar.gz
microcom: require exactly one non-option
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/microcom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/miscutils/microcom.c b/miscutils/microcom.c
index 14b9f3baf..f382edebb 100644
--- 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;