X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udevinfo.c;h=3f47add87cd6f7197ec2d81dc5603bbf56564d3a;hb=2afb8cb37af32495e4f4ff9188e21cbe3a44ce6c;hp=2832ea0ee368677ca7325384bb7655108c7fd980;hpb=bc2a89fad6a5935e241d2f50d5b4f620dc343233;p=elogind.git diff --git a/udevinfo.c b/udevinfo.c index 2832ea0ee..3f47add87 100644 --- a/udevinfo.c +++ b/udevinfo.c @@ -190,7 +190,7 @@ int main(int argc, char *argv[], char *envp[]) { "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' }, {} }; @@ -290,6 +290,9 @@ int main(int argc, char *argv[], char *envp[]) 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; @@ -308,7 +311,6 @@ int main(int argc, char *argv[], char *envp[]) " --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;