docs(derive): Fix explanation on optional string list argument

This is a port of https://github.com/TeXitoi/structopt/pull/450

This is a part of #2809
This commit is contained in:
Ed Page 2021-10-06 13:14:04 -05:00
parent 00f7fe5472
commit 7761cf00d7

View file

@ -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>>,