consoletype: implement the stdout command line option