From cfaac64c404fb1c2e892880410aa3b7dd881ea58 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Fri, 25 Feb 2022 19:40:00 +0100 Subject: 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` --- example/README.md.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/README.md.template') 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 There is also a `parseEx` variant that takes an argument iterator. -### `StreamingClap` +### `streaming.Clap` -The `StreamingClap` is the base of all the other parsers. It's a streaming parser that uses an +The `streaming.Clap` is the base of all the other parsers. It's a streaming parser that uses an `args.Iterator` to provide it with arguments lazily. ```zig -- cgit v1.2.3