book icon indicating copy to clipboard operation
book copied to clipboard

add an example with clapv3 (beta) with optional stdin/stdout

Open michelk opened this issue 4 years ago • 3 comments

This addressed #36

michelk avatar Jun 11 '21 09:06 michelk

This is interesting thank you making the effort.
Does this mean the app could work with piped input/output?

yes | cli-args-clap3-stdin-stdout | xargs echo

bbros-dev avatar Jul 12 '21 04:07 bbros-dev

Hmm, it would appear these two issues are relevant:

  • https://github.com/rust-cli/meta/issues/95
  • https://github.com/rust-cli/meta/issues/29

Hope that helps some one?

bbros-dev avatar Jul 12 '21 04:07 bbros-dev

Thanks for wanting to improve the book!

Some quick thoughts

  • It seems like we should be consistent in clap3 vs structopt. Personally, I'd wait for clap3 to be released and then completely switch over
  • This seems like this belongs more in the in-depth section than the tutorial.

epage avatar Jul 19 '21 14:07 epage