- const char help[] = "usage: vol_id [--export|-t|-l|-u] <device>\n"
- " --export\n"
- " -t filesystem type\n"
- " -l filesystem label\n"
- " -u filesystem uuid\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' },
+ { "offset", 1, NULL, 'o' },
+ { "help", 0, NULL, 'h' },
+ {}
+ };
+