kalekundert / stepwise

Modular, command-line scientific protocols
GNU General Public License v3.0
3 stars 0 forks source link

Print usage text (i.e. --help) to stderr #40

Closed kalekundert closed 3 years ago

kalekundert commented 3 years ago

It's kind of annoying that stepwise always complains that usage text doesn't look like a protocol. I think the best solution to this is just to completely reserve stdout for protocols, and to use stderr for everything else.

Of course, there's not much that stepwise itself can do about this. In this specific case, it's docopt that decides where the usage text is sent to. I'll have to decide if I just want to monkeypath/vendor docopt, or if I want to setup some kind of system that redirects stdout to stderr in certain cases.