{ "attribute-walk", 0, NULL, 'a' },
{ "export-db", 0, NULL, 'e' },
{ "root", 0, NULL, 'r' },
- { "version", 0, NULL, 'V' },
+ { "version", 0, NULL, 1 }, /* -V outputs braindead format */
{ "help", 0, NULL, 'h' },
{}
};
case 'e':
export_db(export_record);
goto exit;
+ case 1:
+ printf("%s\n", UDEV_VERSION);
+ goto exit;
case 'V':
printf("udevinfo, version %s\n", UDEV_VERSION);
goto exit;
" --root prepend to query result or print udev_root\n"
" --attribute-walk print all SYSFS_attributes along the device chain\n"
" --export-db export the content of the udev database\n"
- " --verision print udev version\n"
" --help print this text\n"
"\n");
goto exit;