Skip to content

Commit

Permalink
docs(example): Update builder examples to keep in sync with derive ex…
Browse files Browse the repository at this point in the history
…amples
  • Loading branch information
zippy-dice committed Apr 15, 2024
1 parent d9081f3 commit 62a5af6
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions examples/tutorial_builder/03_02_option_mult.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

```

0 comments on commit 62a5af6

Please sign in to comment.