Pipe it to cut and use the first field.
sha512sum FILENAME | cut -d ' ' -f 1
Options don't seem to be there.
2.1m questions
2.1m answers
60 comments
57.0k users