Support trim_paths with print_output and raise_on_failure, document that it's based on results after filtering if specified.
Support trim_paths with print_output and raise_on_failure, document that it's based on results after filtering if specified.

RELNOTES: None.
PiperOrigin-RevId: 304423494

bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple