Skip to contentSkip to conversation

udevadm-info: add short options in Usage

PATCH In review Yin Kangkai 1 participant 1 message Jul 28, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 2/9 udevadm-info: add short options in Usage

From 9ae52c366fbdf25d169b6dae06782857a068a6cd Mon Sep 17 00:00:00 2001
From: Yin Kangkai <[email protected]>
Date: Tue, 27 Jul 2010 13:44:49 +0800
Subject: [PATCH 2/9] udevadm-info: add short options in Usage

---
 udev/udevadm-info.c |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)
udev/udevadm-info.c +17 -14
index 9bd60c7..61a6f84 100644
@@ -347,20 +347,23 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
 			goto exit;
 		case 'h':
 			printf("Usage: udevadm info OPTIONS\n"
-			       "  --query=<type>             query device information:\n"
-			       "      name                     name of device node\n"
-			       "      symlink                  pointing to node\n"
-			       "      path                     sys device path\n"
-			       "      property                 the device properties\n"
-			       "      all                      all values\n"
-			       "  --path=<syspath>           sys device path used for query or attribute walk\n"
-			       "  --name=<name>              node or symlink name used for query or attribute walk\n"
-			       "  --root                     prepend dev directory to path names\n"
-			       "  --attribute-walk           print all key matches while walking along the chain\n"
-			       "                             of parent devices\n"
-			       "  --device-id-of-file=<file> print major:minor of device containing this file\n"
-			       "  --export-db                export the content of the udev database\n"
-			       "  --help\n\n");
+			       "  -q, --query=<type>             query device information:\n"
+			       "      name                         name of device node\n"
+			       "      symlink                      pointing to node\n"
+			       "      path                         sys device path\n"
+			       "      property                     the device properties\n"
+			       "      all                          all values\n"
+			       "  -p, --path=<syspath>           sys device path used for query or\n"
+			       "                                 attribute walk\n"
+			       "  -n, --name=<name>              node or symlink name used for query or\n"
+			       "                                 attribute walk\n"
+			       "  -r, --root                     prepend dev directory to path names\n"
+			       "  -a, --attribute-walk           print all key matches while walking along\n"
+			       "                                 the chain of parent devices\n"
+			       "  -d, --device-id-of-file=<file> print major:minor of device containing\n"
+			       "                                 this file\n"
+			       "  -e, --export-db                export the content of the udev database\n"
+			       "  -h, --help\n\n");
 			goto exit;
 		default:
 			goto exit;
Signature · 1 line
1.6.5