You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
I am trying to print more helpful error messages. For example, instead of Failed to parse argument "number" I could print Failed to parse argument "--limit".
The text was updated successfully, but these errors were encountered:
Issue by MarcelRobitaille
Wednesday Nov 24, 2021 at 18:25 GMT
Originally opened as clap-rs/clap#3048
Please complete the following tasks
Clap Version
2.33.3
Describe your use case
I am trying to determine which variant of an option was used. For example, did the user type
--number
or just-n
.Describe the solution you'd like
I think
ArgMatches
should have a method similar tovalue_of
that would return this.Alternatives, if applicable
Here is my workaround.
Additional Context
I am trying to print more helpful error messages. For example, instead of
Failed to parse argument "number"
I could printFailed to parse argument "--limit"
.The text was updated successfully, but these errors were encountered: