OK here's where I'm at:
I want my Rust CLI to accept input from stdin (a pipe?) OR the traditional way (`foo -abc input.txt`)
But I also use StructOpt... which might be too strict for this kind of thing?
here's how I adapted another one of my Rust CLIs to print to standard output (just println!)
Think it's a decent solution? Need to test it a bit more though.
@schlink the ">" is the output redirection operator of the shell, so it will work with anything written to the standard output (file descriptor 0).
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!