Skip to content

Commit

Permalink
Fix explanation on optional string list argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnius authored and TeXitoi committed Dec 5, 2020
1 parent 8bda3b6 commit 3848d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example.rs
Original file line number Diff line number Diff line change
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`).
#[structopt(long)]
optv: Option<Vec<String>>,
Expand Down

0 comments on commit 3848d5b

Please sign in to comment.