summaryrefslogtreecommitdiff
path: root/example/simple.zig
diff options
context:
space:
mode:
authorGravatar dbandstra2019-12-01 23:10:25 -0800
committerGravatar dbandstra2019-12-01 23:20:09 -0800
commit2174a4a2e617e51fea42e114803538b9bedb9d35 (patch)
tree7d76dca13427d585cff36c38230d368e51fb3c20 /example/simple.zig
parentAdd clap.parse as the simplest way of using the lib (diff)
downloadzig-clap-2174a4a2e617e51fea42e114803538b9bedb9d35.tar.gz
zig-clap-2174a4a2e617e51fea42e114803538b9bedb9d35.tar.xz
zig-clap-2174a4a2e617e51fea42e114803538b9bedb9d35.zip
update for latest zig
Diffstat (limited to '')
-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"))