Splitting CUE files into FLAC or WAV tracks via the command line

I’ve used the shnsplit utility (part of shntool package) to split FLAC files into their individual tracks with a CUE sheet:
shnsplit -o flac -t "%n - %t" -f filename.cue filename.flac

You can of course substitute WAV for FLAC, and there are more options for file name output if you read its manpage.