-
Notifications
You must be signed in to change notification settings - Fork 150
Option<Vec<T> as argument #180
Copy link
Copy link
Closed
Labels
enhancementWe would love to have this feature! Feel free to supply a PRWe would love to have this feature! Feel free to supply a PR
Description
Hi,
An argument with Option<Vec> 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementWe would love to have this feature! Feel free to supply a PRWe would love to have this feature! Feel free to supply a PR