<#21930 2.24 will no longer exclude targets prefix...
# github-notifications
c
#21930 2.24 will no longer exclude targets prefixed with `-` Issue created by aviau Describe the bug In 2.22, I could run the following:
Copy code
$ pants fmt :: -folder::
In 2.24, I get the following error:
Copy code
$ pants fmt :: -folder::
$ Unknown flag -f in global context
According to my understanding of the docs, it should work: • https://www.pantsbuild.org/dev/docs/using-pants/key-concepts/goals#goal-arguments
To ignore something, prefix the argument with -
Pants version 2.24 OS I can repo on linux and macos Workaround It seems that
--filter-address-regex
can be used for similar results: •
pants fmt :: --filter-address-regex=-^folder
pantsbuild/pants