Make TryFrom::try_from the default for try_from_os_str annotation #3588
Labels
A-derive
Area: #[derive]` macro API
C-enhancement
Category: Raise on the bar on expectations
S-waiting-on-decision
Status: Waiting on a go/no-go before implementing
Please complete the following tasks
Clap Version
3.1.6
Describe your use case
All the kinds that can be used with the
parse
annotation have a default except fortry_from_os_str
. I think the most logical default would be std::convert::TryFrom::try_from. There don't seem to be and types that implementTryFrom<&OsStr>
in the standard library, but it is the most obviouse trait to implement for things like file names that take a path but may not be valid.Describe the solution you'd like
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: