Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 96fc60b

Browse files
committed
Add '--flag <arg>' example mapping for struct field names.
1 parent 5e4ddd6 commit 96fc60b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ fn main() {
9999
The field names of the struct map like this:
100100

101101
```
102-
-g => flag_g
103-
--group => flag_group
104-
FILE => arg_FILE
105-
<file> => arg_file
106-
build => cmd_build
102+
-g => flag_g
103+
--group => flag_group
104+
--group <arg> => flag_group
105+
FILE => arg_FILE
106+
<file> => arg_file
107+
build => cmd_build
107108
```
108109

109110
The `Args` struct has one static method defined for it: `docopt`. The method

0 commit comments

Comments
 (0)