summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/udevinfo.c b/udevinfo.c
index ef4750dbf4..3f47add87c 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;