summaryrefslogtreecommitdiff
path: root/example/README.md.template
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2022-02-25 19:40:00 +0100
committerGravatar Jimmi Holst Christensen2022-02-25 19:40:00 +0100
commitcfaac64c404fb1c2e892880410aa3b7dd881ea58 (patch)
tree0dca149e43daaaef41f55fa61375ab361c36a39c /example/README.md.template
parentFix minor typos in README.md (diff)
downloadzig-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.template4
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
52There is also a `parseEx` variant that takes an argument iterator. 52There is also a `parseEx` variant that takes an argument iterator.
53 53
54### `StreamingClap` 54### `streaming.Clap`
55 55
56The `StreamingClap` is the base of all the other parsers. It's a streaming parser that uses an 56The `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