summaryrefslogtreecommitdiff
path: root/example/simple-error.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-error.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 '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");