-
Hi, I was wondering if it is possible to specify a custom parsing method to handle types which do not implement the #[derive(Clap)]
struct Args {
#[clap(long = "timeout")]
timeout: Option<Duration>,
} It's not a big deal as I can always parse it as a Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
pksunkara
Apr 21, 2020
Replies: 1 comment 1 reply
-
https://docs.rs/structopt/0.3.13/structopt/#custom-string-parsers. Logic related to this hasn't changed in clap. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jibi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://docs.rs/structopt/0.3.13/structopt/#custom-string-parsers. Logic related to this hasn't changed in clap.