Skip to content

Show help info in REPL #5693

Answered by epage
tisonkun asked this question in Q&A
Aug 22, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can see our REPL example at https://docs.rs/clap/latest/clap/_derive/_cookbook/repl_derive/index.html

In that case, the difference between an error and help printing doesn't matter because we do the same thing. If you are needing to distinguish, check err.use_stderr().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tisonkun
Comment options

Answer selected by tisonkun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants