I agree with Paul, it'd be nicer to juse have ``generatesecret`` and use ``-`` to send to stdout.