Skip to contentSkip to conversation

udevadm-trigger: 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 8/9 udevadm-trigger: add short options in Usage

From 16c72cce078464ba2f62ecf3297c6d6aae78a1cd Mon Sep 17 00:00:00 2001
From: Yin Kangkai <[email protected]>
Date: Wed, 28 Jul 2010 10:24:48 +0800
Subject: [PATCH 8/9] udevadm-trigger: add short options in Usage

---
 udev/udevadm-trigger.c |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)
udev/udevadm-trigger.c +16 -16
index 481e9cf..0d82606 100644
@@ -181,22 +181,22 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[])
 			break;
 		case 'h':
 			printf("Usage: udevadm trigger OPTIONS\n"
-			       "  --verbose                       print the list of devices while running\n"
-			       "  --dry-run                       do not actually trigger the events\n"
-			       "  --type=                         type of events to trigger\n"
-			       "      devices                       sys devices (default)\n"
-			       "      subsystems                    sys subsystems and drivers\n"
-			       "      failed                        trigger only the events which have been\n"
-			       "                                    marked as failed during a previous run\n"
-			       "  --action=<action>               event action value, default is \"change\"\n"
-			       "  --subsystem-match=<subsystem>   trigger devices from a matching subsystem\n"
-			       "  --subsystem-nomatch=<subsystem> exclude devices from a matching subsystem\n"
-			       "  --attr-match=<file[=<value>]>   trigger devices with a matching attribute\n"
-			       "  --attr-nomatch=<file[=<value>]> exclude devices with a matching attribute\n"
-			       "  --property-match=<key>=<value>  trigger devices with a matching property\n"
-			       "  --tag-match=<key>=<value>       trigger devices with a matching property\n"
-			       "  --sysname-match=<name>          trigger devices with a matching name\n"
-			       "  --help\n\n");
+			       "  -v, --verbose                       print the list of devices while running\n"
+			       "  -n, --dry-run                       do not actually trigger the events\n"
+			       "  -t, --type=                         type of events to trigger\n"
+			       "      devices                           sys devices (default)\n"
+			       "      subsystems                        sys subsystems and drivers\n"
+			       "      failed                            trigger only the events which have been\n"
+			       "                                        marked as failed during a previous run\n"
+			       "  -c, --action=<action>               event action value, default is \"change\"\n"
+			       "  -s, --subsystem-match=<subsystem>   trigger devices from a matching subsystem\n"
+			       "  -S, --subsystem-nomatch=<subsystem> exclude devices from a matching subsystem\n"
+			       "  -a, --attr-match=<file[=<value>]>   trigger devices with a matching attribute\n"
+			       "  -A, --attr-nomatch=<file[=<value>]> exclude devices with a matching attribute\n"
+			       "  -p, --property-match=<key>=<value>  trigger devices with a matching property\n"
+			       "  -g, --tag-match=<key>=<value>       trigger devices with a matching property\n"
+			       "  -y, --sysname-match=<name>          trigger devices with a matching name\n"
+			       "  -h, --help\n\n");
 			goto exit;
 		default:
 			goto exit;
Signature · 1 line
1.6.5