mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
docs(example): Update builder examples to keep in sync with derive examples
This commit is contained in:
parent
d9081f3dce
commit
62a5af66eb
1 changed files with 6 additions and 12 deletions
|
@ -10,21 +10,15 @@ Options:
|
|||
-V, --version Print version
|
||||
|
||||
$ 03_02_option_mult
|
||||
name: None
|
||||
names: []
|
||||
|
||||
$ 03_02_option_mult --name bob
|
||||
name: Some("bob")
|
||||
names: ["bob"]
|
||||
|
||||
$ 03_02_option_mult --name=bob
|
||||
name: Some("bob")
|
||||
$ 03_02_option_mult --name bob --name john
|
||||
names: ["bob", "john"]
|
||||
|
||||
$ 03_02_option_mult -n bob
|
||||
name: Some("bob")
|
||||
|
||||
$ 03_02_option_mult -n=bob
|
||||
name: Some("bob")
|
||||
|
||||
$ 03_02_option_mult -nbob
|
||||
name: Some("bob")
|
||||
$ 03_02_option_mult_derive --name bob --name=john -n tom -n=chris -nsteve
|
||||
name: ["bob", "john", "tom", "chris", "steve"]
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue