summaryrefslogtreecommitdiff
path: root/example/simple-error.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-error.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-error.zig')
-rw-r--r--example/simple-error.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/simple-error.zig b/example/simple-error.zig
index fc72a03..2c403fc 100644
--- a/example/simple-error.zig
+++ b/example/simple-error.zig
@@ -8,7 +8,7 @@ pub fn main() !void {
8 clap.parseParam("-h, --help Display this help and exit.") catch unreachable, 8 clap.parseParam("-h, --help Display this help and exit.") catch unreachable,
9 }; 9 };
10 10
11 var args = try clap.parse(clap.Help, params, std.heap.direct_allocator); 11 var args = try clap.parse(clap.Help, &params, std.heap.direct_allocator);
12 defer args.deinit(); 12 defer args.deinit();
13 13
14 _ = args.flag("--helps"); 14 _ = args.flag("--helps");