summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-03-07 18:00:12 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-03-07 18:00:12 +0100
commit88caa9da18841561c604c5a237cb776375eee035 (patch)
treec01fd925a89f22f1a7cf1209f4ecd5cbd8dc7099 /udevinfo.c
parent159ba1c5314b160d7036009eac690fe399c7917d (diff)
man: add missing options to various man pages
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;