X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=udevinfo.c;h=3f47add87cd6f7197ec2d81dc5603bbf56564d3a;hb=fc6da921ad3bcb251aa317376e81701700e925c9;hp=0551eb2e3287ae1cf2efbe6c4d8d29687f805611;hpb=92be0b870032fdbd5634bf75742d47a7a2276f24;p=elogind.git diff --git a/udevinfo.c b/udevinfo.c index 0551eb2e3..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" - " --version print udev version\n" " --help print this text\n" "\n"); goto exit;