summaryrefslogtreecommitdiff
path: root/example/comptime-clap.zig
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2019-12-03 05:43:43 +0100
committerGravatar GitHub2019-12-03 05:43:43 +0100
commitac461f50df2861eb9b6834ba770c3c149c72eb9c (patch)
tree7d76dca13427d585cff36c38230d368e51fb3c20 /example/comptime-clap.zig
parentAdd clap.parse as the simplest way of using the lib (diff)
parentupdate for latest zig (diff)
downloadzig-clap-ac461f50df2861eb9b6834ba770c3c149c72eb9c.tar.gz
zig-clap-ac461f50df2861eb9b6834ba770c3c149c72eb9c.tar.xz
zig-clap-ac461f50df2861eb9b6834ba770c3c149c72eb9c.zip
Merge pull request #12 from dbandstra/update-for-latest-zig
update for latest zig
Diffstat (limited to 'example/comptime-clap.zig')
-rw-r--r--example/comptime-clap.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/comptime-clap.zig b/example/comptime-clap.zig
index 4d0ace3..fde0648 100644
--- a/example/comptime-clap.zig
+++ b/example/comptime-clap.zig
@@ -22,7 +22,7 @@ pub fn main() !void {
22 defer iter.deinit(); 22 defer iter.deinit();
23 23
24 // Parse the arguments 24 // Parse the arguments
25 var args = try clap.ComptimeClap(clap.Help, params).parse(allocator, clap.args.OsIterator, &iter); 25 var args = try clap.ComptimeClap(clap.Help, &params).parse(allocator, clap.args.OsIterator, &iter);
26 defer args.deinit(); 26 defer args.deinit();
27 27
28 if (args.flag("--help")) 28 if (args.flag("--help"))