summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2022-02-25 19:40:00 +0100
committerGravatar Komari Spaghetti2022-03-09 18:12:40 +0100
commit5f7b75d5523d9581eca5a72a362868ff517992e8 (patch)
tree5e874f9c935e0d7c838ea5aadf270ce2929f8e8a /build.zig
parentBump actions/checkout from 2.4.0 to 3 (diff)
downloadzig-clap-5f7b75d5523d9581eca5a72a362868ff517992e8.tar.gz
zig-clap-5f7b75d5523d9581eca5a72a362868ff517992e8.tar.xz
zig-clap-5f7b75d5523d9581eca5a72a362868ff517992e8.zip
Allow for clap to parse argument values into types
This changes - `.flag`, `.option`, `.options` and `.positionals` are now just fields you access on the result of `parse` and `parseEx`. - `clap.ComptimeClap` has been removed. - `clap.StreamingClap` is now called `clap.streaming.Clap` - `parse` and `parseEx` now takes a `value_parsers` argument that provides the parsers to parse values. - Remove `helpEx`, `helpFull`, `usageEx` and `usageFull`. They now just expect `Id` to have methods for getting the description and value texts.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 9b1c0ce..0d253e2 100644
--- a/build.zig
+++ b/build.zig
@@ -60,7 +60,7 @@ fn readMeStep(b: *Builder) *std.build.Step {
60 const stream = file.writer(); 60 const stream = file.writer();
61 try stream.print(@embedFile("example/README.md.template"), .{ 61 try stream.print(@embedFile("example/README.md.template"), .{
62 @embedFile("example/simple.zig"), 62 @embedFile("example/simple.zig"),
63 @embedFile("example/simple-error.zig"), 63 @embedFile("example/simple-ex.zig"),
64 @embedFile("example/streaming-clap.zig"), 64 @embedFile("example/streaming-clap.zig"),
65 @embedFile("example/help.zig"), 65 @embedFile("example/help.zig"),
66 @embedFile("example/usage.zig"), 66 @embedFile("example/usage.zig"),