-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
validator_os returns Result<(), OsString> #848
Labels
A-validators
Area: ArgMatches validation logi
Milestone
Comments
Hmm, I see your point about errors being designed for display anyways. I'm inclined to agree it should be changed to I'll tentatively mark this for change in 3.x, but am open to discussion. For now, |
little-dude
added a commit
to little-dude/clap-rs
that referenced
this issue
Jun 8, 2017
This was referenced Feb 5, 2018
Closed
little-dude
added a commit
to little-dude/clap-rs
that referenced
this issue
Apr 21, 2018
little-dude
added a commit
to little-dude/clap-rs
that referenced
this issue
Apr 21, 2018
little-dude
added a commit
to little-dude/clap-rs
that referenced
this issue
Apr 21, 2018
This has been implemented on v3-master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected Version of clap
2.20.3 and anything API-compatible with it.
Expected Behavior Summary
Callbacks for
validator_os
should returnResult<T, String>
for someT
because:validator
in a context where the usage doesn't differOsStr
/OsString
intoformat!
output via theDebug
trait.OsStr
/OsString
Result<T, OsString>
Actual Behavior Summary
.into()
onto the end of everyErr
case that I return from a path-handling validator.Result<(), OsString>
.Sample Code or Link to Sample Code
I think this should be reconsidered for clap 3.x
The text was updated successfully, but these errors were encountered: