New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ContextKind::Custom
has no functionality
#5044
Comments
Huh, that must have slipped through the cracks in #3402 (real don't want to dig into the 35 commits to verify) Our options
|
I think defining how it should be rendered would be the best option - it would be super helpful for adding additional context as to why a custom ValueParser failed ("cannot parse '0xinvalid' as hex", "file 'abc.xyz' should have .txt extension", etc) |
If its for a random How would it show up in the regular error formatting:
|
A few things:
|
While it would be great to have everything in clap to the same degree of quality, the practical aspect is that this area isn't as much of a focus as this is fairly off the beaten path. So long as we provide an escape hatch to work, that is sufficient. If there is interest from someone improving the docs in a way that fits within the docs and doesn't detract from higher priority workflows, it would be welcome.
We can consider this for 5.0 though it should have its own Issue
What do you mean? |
As per the title,
ContextKind::Custom
is currently useless as nothing ever reads it. I expected it to be used in a similar way toContextKind::Usage
, in that it could be attached to any ErrorKind and be printed as An opaque message to the user, but it just does nothing.The text was updated successfully, but these errors were encountered: