QQ: what does the `+-` signs mean in `--filter-tag...
# general
a
QQ: what does the
+-
signs mean in
--filter-tag-regex="[[+-]regex1,regex2,..., [+-]regex1,regex2,..., ...]"
(link)?
h
https://www.pantsbuild.org/docs/project-introspection#filter---find-targets-that-match-a-predicate gives some examples. you can optionally put an
+
in front, which is the default. You can also optionally put a
-
in front to negate it
@happy-kitchen-89482 thoughts on removing the
+
from those generated docs? The default is already
+
, so seems like just extra confusion. (We would keep the code affordance)
a
ok, so if we have something like
./pants filter --filter-address-regex=-foo ::
it is saying: find me ALL the targets with tags that do NOT fit the regex
foo
?
h
precisely
a
thanks!
❤️ 1