{
int failed = 0;
int option;
- int longindex;
struct option options[] = {
{ "verbose", 0, NULL, 'v' },
{ "dry-run", 0, NULL, 'n' },
sysfs_init();
while (1) {
- option = getopt_long(argc, argv, "vnFhs:S:a:A:", options, &longindex);
+ option = getopt_long(argc, argv, "vnFhs:S:a:A:", options, NULL);
if (option == -1)
break;
" --verbose print the list of devices which will be triggered\n"
" --dry-run do not actually trigger the event\n"
" --retry-failed trigger only the events which are failed during a previous run\n"
- " --subsystem-match select only devices from the specified subystem\n"
- " --subsystem-nomatch exclude devices from the specified subystem\n"
+ " --subsystem-match=<subsystem> select only devices from the specified subystem\n"
+ " --subsystem-nomatch=<subsystem> exclude devices from the specified subystem\n"
" --attr-match=<file[=<value>]> select only devices with a matching sysfs attribute\n"
" --attr-nomatch=<file[=<value>]> exclude devices with a matching sysfs attribute\n"
" --help print this text\n"