The settle command does not define positional arguments.
Reject them during argument parsing instead of silently ignoring
them.
Reproducer:
udevadm settle /no/such/argument
Before:
The command exits successfully and ignores the argument.
Follow-up:
c71509028fc2741b25dd537f9e1b7e8896df745e
opts.opt->short_code);
}
+ if (option_parser_get_n_args(&opts) > 0)
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
+ "This subprogram takes no positional arguments.");
+
return 1;
}
udevadm settle
udevadm settle -t 5
udevadm settle -E /sys/class/net/$netdev
+(! udevadm settle /no/such/argument)
udevadm settle -h
udevadm test /dev/null