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 },
13 { .val = 'o', .name = "output", .has_arg = 1 },
15 char short_options[] = "d:v:o:";
17 memset(opts, 0, sizeof(*opts));
20 c = getopt_long(argc, argv, short_options, long_options,
28 opts->usbdev = optarg;
32 opts->trace_level = atoi(optarg);
36 opts->output_path = optarg;
43 while (optind < argc) {
45 * Some day we do something useful here with the rest
46 * of the options.. Maybe