diff options
| author | 2022-02-25 19:40:00 +0100 | |
|---|---|---|
| committer | 2022-02-25 19:40:00 +0100 | |
| commit | cfaac64c404fb1c2e892880410aa3b7dd881ea58 (patch) | |
| tree | 0dca149e43daaaef41f55fa61375ab361c36a39c /example/README.md.template | |
| parent | Fix minor typos in README.md (diff) | |
| download | zig-clap-cfaac64c404fb1c2e892880410aa3b7dd881ea58.tar.gz zig-clap-cfaac64c404fb1c2e892880410aa3b7dd881ea58.tar.xz zig-clap-cfaac64c404fb1c2e892880410aa3b7dd881ea58.zip | |
Change clap into generating a struct
This changes
- `.flag`, `.option`, `.options` and `.positionals` are now just fields
you access.
- Move the current `clap.parse` and friends into `clap.untyped.parse`
- This is in preperation for `clap.typed.parse`
Diffstat (limited to 'example/README.md.template')
| -rw-r--r-- | example/README.md.template | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/README.md.template b/example/README.md.template index 7f5c545..d792152 100644 --- a/example/README.md.template +++ b/example/README.md.template | |||
| @@ -51,9 +51,9 @@ zig-clap/example/simple-error.zig:16:18: note: called from here | |||
| 51 | 51 | ||
| 52 | There is also a `parseEx` variant that takes an argument iterator. | 52 | There is also a `parseEx` variant that takes an argument iterator. |
| 53 | 53 | ||
| 54 | ### `StreamingClap` | 54 | ### `streaming.Clap` |
| 55 | 55 | ||
| 56 | The `StreamingClap` is the base of all the other parsers. It's a streaming parser that uses an | 56 | The `streaming.Clap` is the base of all the other parsers. It's a streaming parser that uses an |
| 57 | `args.Iterator` to provide it with arguments lazily. | 57 | `args.Iterator` to provide it with arguments lazily. |
| 58 | 58 | ||
| 59 | ```zig | 59 | ```zig |