6 int read_args(int argc, char *argv[], struct user_options *opts)
8 int option_index = 0, c;
9 static struct option long_options[] = {
10 { .val = 'd', .name = "device", .has_arg = 1, },
11 { .val = 'v', .name = "verbose", },
13 char short_options[] = "d:v";
15 memset(opts, 0, sizeof(*opts));
18 c = getopt_long(argc, argv, short_options, long_options,
26 opts->usbdev = optarg;
35 while (optind < argc) {
37 * Some day we do something useful here with the rest
38 * of the options.. Maybe