7 int read_args(int argc, char *argv[], struct user_options *opts)
9 int option_index = 0, c;
10 static struct option long_options[] = {
11 { .val = 'd', .name = "device", .has_arg = 1, },
12 { .val = 'v', .name = "verbose", .has_arg = 2},
14 char short_options[] = "d:v";
16 memset(opts, 0, sizeof(*opts));
19 c = getopt_long(argc, argv, short_options, long_options,
27 opts->usbdev = optarg;
31 opts->trace_level = atoi(optarg);
39 while (optind < argc) {
41 * Some day we do something useful here with the rest
42 * of the options.. Maybe