Skip to content

Commit

Permalink
docs(derive): Fix explanation on optional string list argument
Browse files Browse the repository at this point in the history
This is a port of TeXitoi/structopt#450

This is a part of clap-rs#2809
  • Loading branch information
epage committed Oct 6, 2021
1 parent 5512c90 commit d2d3b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_derive/examples/example.rs
Expand Up @@ -37,7 +37,7 @@ struct Opt {

// An optional list of values, will be `None` if not present on
// the command line, will be `Some(vec![])` if no argument is
// provided (i.e. `--optv`) and will be `Some(Some(String))` if
// provided (i.e. `--optv`) and will be `Some(Vec<String>)` if
// argument list is provided (e.g. `--optv a b c`).
#[clap(long)]
optv: Option<Vec<String>>,
Expand Down

0 comments on commit d2d3b87

Please sign in to comment.