realestate-com-au / shush

It's a secret.
169 stars 36 forks source link

Error text is output on STDOUT, not STDERR #31

Open mwgamble opened 2 years ago

mwgamble commented 2 years ago

When I run the following command:

shush encrypt --region ap-southeast-2 key-id

I get a message on STDOUT informing me my usage is incorrect. This text should go on STDERR.

Also the command returns with a success exit status code, so I didn't pick up the error until later.

mwgamble commented 2 years ago

As an aside, it would be nice if the --region flag could be passed after the subcommand name, rather than just before it.