--tests flag for custom test tasks

When running the gradle test command it’s useful to use the --tests *MyParticularTest flag to run an individual test. I’m working on a project that has a custom integrationTest task that runs all JUnit tests with an integration test category annotation. Is there any way to wire up this custom task so that it also permits the usage of --tests to filter what gets run?

--tests will work for any task of type Test