Adds -stdin option to read messages from the stdin