Disk usage in Mac terminal not working with --max-depth I want to see my disk usage for a specific folder with a pre-set maximum depth. On Linux, the command is

$ du -h --max-depth 1


On macOS Mojave (10.14.5) with bash version 3.2.57(1)-release, this is not working. I also tried 

$ du -hd1


as described here, also not working. The terminal output is:

usage: du [-H | -L | -P] [-a | -s | -d depth] [-c] [-h | -k | -m | -g] [-x] [-I mask] [file ...]


What is the best solution?
du -h -d 1


seems to work on my Mac