Closed kwigley closed 2 years ago
Here is the issue reproduced with the example in the repo: https://github.com/kwigley/clio/tree/kwigley/using-clap
This is fixed in version 0.2.0. The correct derive annotation for clap is now:
#[clap(parse(try_from_os_str = TryFrom::try_from))]
I tried this our with a newer version of clap (
3.1
), but was unable to compile with with errors like the followingThis might be an issue with clap, sorry about that if that is the case! Here is an example where clap tests the same functionality: https://github.com/clap-rs/clap/blob/976f3d500ab890216e5d9929fcfc31bc7b4d16b4/tests/derive/custom_string_parsers.rs#L121