Hi, An argument with Option<Vec<T>> does not seem to work. Are there any workarounds ? ``` #[derive(StructOpt, Debug)] pub enum DevCmds { #[structopt(name = "list", alias = "show")] Cmd1 { optional_args: Option<Vec<String>>, }, ``` This produces errors like: ``` error[E0277]: the trait bound `std::vec::Vec<T>: std::str::FromStr` is not satisfied ```
Activity
TeXitoi commentedon Apr 22, 2019
Why not just
Vec?jdm204 commentedon Apr 30, 2019
Hi, I can't speak for @aurabindo, but for my use case I'd like to differentiate between
is this currently possible without
Option<Vec<T>>? Thanks for your work on structopt!TeXitoi commentedon Apr 30, 2019
That's not possible with structopt today. That's a structopt limitation, clap allows to do that.