-
Hello, I am trying to get the nice printed message with the I've added my attempt to this rust playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=99840c8a34dae9dbb841ec615a27611f. As shown, when the error is thrown no additional context is provided. When the error is printed with I made sure to have the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
When using |
Beta Was this translation helpful? Give feedback.
Currently the only way to do it is to put your error in a
IoError
and useclap::Error::from
.Or you could render your message with the suggestion and pass that to clap.
If those aren't enough, some possible ways we can change clap