microcom: require exactly one non-option
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cfd392bea9
commit
4dc86699b5
@ -74,6 +74,7 @@ int microcom_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
unsigned opts;
|
unsigned opts;
|
||||||
|
|
||||||
// fetch options
|
// fetch options
|
||||||
|
opt_complementary = "=1";
|
||||||
opts = getopt32(argv, "Xs:+d:+t:+", &speed, &delay, &timeout);
|
opts = getopt32(argv, "Xs:+d:+t:+", &speed, &delay, &timeout);
|
||||||
// argc -= optind;
|
// argc -= optind;
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
Loading…
Reference in New Issue
Block a user