libusb: allow command line arguments for examples

This commit is contained in:
Matthias Ringwald 2023-02-13 12:48:16 +01:00
parent c0fa7c1deb
commit 9735997986

View File

@ -269,6 +269,9 @@ int main(int argc, const char * argv[]){
if (c < 0) {
break;
}
if (c == '?'){
break;
}
switch (c) {
case 'u':
usb_path_string = optarg;
@ -279,7 +282,6 @@ int main(int argc, const char * argv[]){
case 'r':
tlv_reset = true;
break;
case '?':
case 'h':
default:
usage(argv[0]);