summaryrefslogtreecommitdiff
path: root/example/simple-error.zig
diff options
context:
space:
mode:
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");