Skip to content

Allow for multiple devices and object paths

Peter Hutterer requested to merge whot/udev-hid-bpf:wip/multiple-args into main

udev-hid-bpf add foo bar - xyz uvw

Loads BPF objects xyz and uvw for the two devices foo and bar. A single dash separator is needed, Clap stops parsing at -- and we need some separator to maintain backwards compatibility.

The behavior for one or two arg is identical to before, i.e. device and device + object path.

Match this for remove too so that we can remove multiple BPF programs at once.

cc @JoseExposito

Merge request reports