mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 23:21:08 +03:00
usb_id: add <devpath> to help text
This commit is contained in:
parent
68ab3e137b
commit
5f605a6cf1
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user