- const char help[] = "Usage: vol_id [options] <device>\n"
- " --export export key/value pairs\n"
- " -t filesystem type\n"
- " -l filesystem label\n"
- " -u filesystem uuid\n"
- " -L raw label\n"
- " --skip-raid don't probe for raid\n"
- " --probe-all find possibly conflicting signatures\n"
- " --help\n"
- "\n";
+ static const struct option options[] = {
+ { "label", 0, NULL, 'l' },
+ { "label-raw", 0, NULL, 'L' },
+ { "uuid", 0, NULL, 'u' },
+ { "type", 0, NULL, 't' },
+ { "export", 0, NULL, 'x' },
+ { "skip-raid", 0, NULL, 's' },
+ { "probe-all", 0, NULL, 'a' },
+ { "help", 0, NULL, 'h' },
+ {}
+ };
+