linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yin Kangkai <kangkai.yin@linux.intel.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH 2/9] udevadm-info: add short options in Usage
Date: Wed, 28 Jul 2010 03:14:01 +0000	[thread overview]
Message-ID: <20100728031401.GB29131@kai-debian> (raw)

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

Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
---
 udev/udevadm-info.c |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c
index 9bd60c7..61a6f84 100644
--- a/udev/udevadm-info.c
+++ b/udev/udevadm-info.c
@@ -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;
-- 
1.6.5


                 reply	other threads:[~2010-07-28  3:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100728031401.GB29131@kai-debian \
    --to=kangkai.yin@linux.intel.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).