Add a -f command-line flag to specify printing all paths or only terminal