mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
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:
parent
00f7fe5472
commit
7761cf00d7
1 changed files with 1 additions and 1 deletions
|
@ -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>>,
|
||||
|
|
Loading…
Reference in a new issue