microcom: require exactly one non-option
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Aug 2017 00:01:45 +0000 (02:01 +0200)
committerDenys 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

index 14b9f3bafeaf6d1a35ebbafdceca59f414a6a5b2..f382edebb0c7f4792a368108a7b40f14fc75d3f8 100644 (file)
@@ -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;