-static struct option long_options[] = {
- {"enumerate", no_argument, 0, 'e'},
- {"help", no_argument, 0, 'h'},
- {"lookup", no_argument, 0, 'l'},
- {"verbose", no_argument, 0, 'v'},
- {0, 0, 0, 0},
-};
+static struct option long_opts[] = {
+ { .val = 'e', .name = "enumerate", .has_arg = no_argument },
+ { .val = 'h', .name = "help", .has_arg = no_argument },
+ { .val = 'l', .name = "lookup", .has_arg = no_argument },
+ { .val = 'v', .name = "verbose", .has_arg = no_argument },
+ { .name = NULL } };