You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
A few times now I've written an option that I wanted to turn into a Box<Read> / Box<Write> depending on whether a filename or a "-" was passed on the command line. It'd be neat if StructOpt or something could detect that (I have no idea between quicli and structopt where that responsibility would lie).
And then have myprog, myprog -o - turn into a boxed Stdout writer, and myprog -o somefile turn into a boxed File writer. Similarly readers/reader-writers depending on what traits you ask for in the box.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It will be great if I could just set some flag and callback to get an ability to read from stdin and write to stdout.
The text was updated successfully, but these errors were encountered: