Skip to content
Discussion options

You must be logged in to vote

Currently the only way to do it is to put your error in a IoError and use clap::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

  • Add a conversion from any error
  • Add a Context to override the Kind's message

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jemarq04
Comment options

@epage
Comment options

Answer selected by jemarq04
@jemarq04
Comment options

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