I found that the switch is brew deps --treealso very useful for rendering dependencies only on the command line. From the official doc:
brew deps
Show dependencies as a tree. When given multiple formula arguments, output
individual trees for every formula.
Example1:
brew deps --tree fontconfig
Output1:
fontconfig
└── freetype
└── libpng
Example2:
brew deps --tree --1 fontconfig
Output2:
fontconfig
└── freetype
and there are more switches explained:
brew help deps
source
share