What is the macOS (10.14.6) equivalent of --exclude in du?

Solution 1:

I had luck on MacOS 10.15 with the following:

du -I System -I private -I Library