]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
usbconfig: use getopt(3) for option handling
authorJoerg Wunsch <joerg@FreeBSD.org>
Sun, 19 Dec 2021 22:49:23 +0000 (23:49 +0100)
committerJoerg Wunsch <joerg@FreeBSD.org>
Mon, 20 Dec 2021 11:49:30 +0000 (12:49 +0100)
commitae450e6de96b5ec65f425a52b08dc859576ab8d0
tree170ea4816e79ce9b2e97d070fc049864da46d601
parent3861bafb68f6c60e4688b844fb6a678e29095655
usbconfig: use getopt(3) for option handling

This makes option handling consistent with other utilities as well as
Posix rules. By that, it's no longer important whether option name and
its argument are separated by a space or not, so -d5.3 works the same
as -d 5.3.

Also, recognize either /dev/ugen or ugen as prefix to the -d argument.

Note that this removes the undocumented feature that allowed to
specify multiple -d n.m options interleaved with commands referring to
that particular device in a single run.
usr.sbin/usbconfig/usbconfig.8
usr.sbin/usbconfig/usbconfig.c