Replies: 1 comment
-
Looks like most places have the relevant context that this could be baked directly into clap. Feel free to make an issue for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using clap_derive and I have the problem that when the attribute env is used and a user provides an invalid value there then clap does output the default error message. It does not say anything to the user that the parsed environment variable was used. It outputs the error message like the user would provide the argument directly via cli option.
I would ask if there is a feature or derive attribute to change the error message so that a custom error message is print. I know that clap itself does provide such functionality but we use derive attributes and then a single
Arguments::parse()
call and this won't work together without changing much code.So to explain in detail what would be great to have for better useability:
Also workarounds are welcome. :-)
Beta Was this translation helpful? Give feedback.
All reactions