udev: improve help/usage for some more programs
This commit is contained in:
parent
ba52f15a58
commit
257e968d8c
|
@ -450,8 +450,8 @@ int main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
printf("Usage: ata_id [--export] [--help] <device>\n"
|
printf("Usage: ata_id [--export] [--help] <device>\n"
|
||||||
" --export print values as environment keys\n"
|
" -x,--export print values as environment keys\n"
|
||||||
" --help print this help text\n\n");
|
" -h,--help print this help text\n\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -891,11 +891,11 @@ int main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
printf("Usage: cdrom_id [options] <device>\n"
|
printf("Usage: cdrom_id [options] <device>\n"
|
||||||
" --lock-media lock the media (to enable eject request events)\n"
|
" -l,--lock-media lock the media (to enable eject request events)\n"
|
||||||
" --unlock-media unlock the media\n"
|
" -u,--unlock-media unlock the media\n"
|
||||||
" --eject-media eject the media\n"
|
" -e,--eject-media eject the media\n"
|
||||||
" --debug debug to stderr\n"
|
" -d,--debug debug to stderr\n"
|
||||||
" --help print this help text\n\n");
|
" -h,--help print this help text\n\n");
|
||||||
goto exit;
|
goto exit;
|
||||||
default:
|
default:
|
||||||
rc = 1;
|
rc = 1;
|
||||||
|
|
|
@ -68,15 +68,17 @@ noreturn static void sig_alrm(int signo)
|
||||||
|
|
||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
printf("usage: collect [--add|--remove] [--debug] <checkpoint> <id> <idlist>\n"
|
printf("Usage: collect [options] <checkpoint> <id> <idlist>\n"
|
||||||
"\n"
|
" -a,--add add ID <id> to the list <idlist>\n"
|
||||||
|
" -r,--remove remove ID <id> from the list <idlist>\n"
|
||||||
|
" -d,--debug debug to stderr\n"
|
||||||
|
" -h,--help print this help text\n\n"
|
||||||
" Adds ID <id> to the list governed by <checkpoint>.\n"
|
" Adds ID <id> to the list governed by <checkpoint>.\n"
|
||||||
" <id> must be part of the list <idlist>.\n"
|
" <id> must be part of the list <idlist>.\n"
|
||||||
" If all IDs given by <idlist> are listed (ie collect has been\n"
|
" If all IDs given by <idlist> are listed (ie collect has been\n"
|
||||||
" invoked for each ID in <idlist>) collect returns 0, the\n"
|
" invoked for each ID in <idlist>) collect returns 0, the\n"
|
||||||
" number of missing IDs otherwise.\n"
|
" number of missing IDs otherwise.\n"
|
||||||
" On error a negative number is returned.\n"
|
" On error a negative number is returned.\n\n");
|
||||||
"\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -313,7 +313,7 @@ static void help(void) {
|
||||||
" -g,--whitelisted treat device as whitelisted\n"
|
" -g,--whitelisted treat device as whitelisted\n"
|
||||||
" -u,--replace-whitespace replace all whitespace by underscores\n"
|
" -u,--replace-whitespace replace all whitespace by underscores\n"
|
||||||
" -v,--verbose verbose logging\n"
|
" -v,--verbose verbose logging\n"
|
||||||
" --version print version\n"
|
" -V,--version print version\n"
|
||||||
" -x,--export print values as environment keys\n"
|
" -x,--export print values as environment keys\n"
|
||||||
" -h,--help print this help text\n\n");
|
" -h,--help print this help text\n\n");
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ int main (int argc, char *argv[])
|
||||||
|
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case 'h':
|
case 'h':
|
||||||
printf("Usage: v4l_id [--help] <device file>\n\n");
|
printf("Usage: v4l_id [-h,--help] <device file>\n\n");
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue