See commit 05dfcbc "cli: Add command line option - to read from standard input", cc @miguelbarao.
05dfcbc