microcom: require exactly one non-option
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cfd392bea9
commit
4dc86699b5
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue