On Tue, 13 Nov 2018 16:12:01 +0100 Phil Sutter <p...@nwl.cc> wrote: > + if (arg[0] == '-') { > + inv = true; > + arg++; > + } The inverse logic needs to be moved into the loop handling filter names.
Otherwise, you get weirdness like "-dynamic" being accepted and not doing what was expected. Also, please make sure the man page matches the code.