summaryrefslogtreecommitdiff
path: root/example/simple.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/simple.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/simple.zig')
-rw-r--r--example/simple.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/simple.zig b/example/simple.zig
index f791447..a3f27ea 100644
--- a/example/simple.zig
+++ b/example/simple.zig
@@ -14,7 +14,7 @@ pub fn main() !void {
14 }, 14 },
15 }; 15 };
16 16
17 var args = try clap.parse(clap.Help, params, std.heap.direct_allocator); 17 var args = try clap.parse(clap.Help, &params, std.heap.direct_allocator);
18 defer args.deinit(); 18 defer args.deinit();
19 19
20 if (args.flag("--help")) 20 if (args.flag("--help"))