summaryrefslogtreecommitdiff
path: root/extras/usb_id
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-05-01 14:18:36 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-05-01 14:18:36 +0200
commit5f605a6cf1850f17a0d24b57094c2e275e31d4da (patch)
tree13cc65f7c17f4f5c5ffeb1bf1ab171802987800b /extras/usb_id
parent68ab3e137b2ed017ca5d210dedfff702e21b25cf (diff)
usb_id: add <devpath> to help text
Diffstat (limited to 'extras/usb_id')
-rw-r--r--extras/usb_id/usb_id.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/extras/usb_id/usb_id.c b/extras/usb_id/usb_id.c
index 50918f060b..d36a27b3cc 100644
--- a/extras/usb_id/usb_id.c
+++ b/extras/usb_id/usb_id.c
@@ -368,10 +368,6 @@ int main(int argc, char **argv)
const char *env;
char devpath[MAX_PATH_LEN];
static int export;
-
- logging_init("usb_id");
- sysfs_init();
-
static const struct option options[] = {
{ "usb-info", 0, NULL, 'u' },
{ "num-info", 0, NULL, 'n' },
@@ -380,6 +376,9 @@ int main(int argc, char **argv)
{}
};
+ logging_init("usb_id");
+ sysfs_init();
+
while (1) {
int option;
@@ -399,7 +398,7 @@ int main(int argc, char **argv)
export = 1;
break;
case 'h':
- printf("Usage: usb_id [--usb-info] [--num-info] [--export] [--help]\n"
+ printf("Usage: usb_id [--usb-info] [--num-info] [--export] [--help] <devpath>\n"
" --usb-info use usb strings instead\n"
" --num-info use numerical values\n"
" --export print values as environemt keys\n"