summaryrefslogtreecommitdiff
path: root/example/streaming-clap.zig
diff options
context:
space:
mode:
Diffstat (limited to 'example/streaming-clap.zig')
-rw-r--r--example/streaming-clap.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/streaming-clap.zig b/example/streaming-clap.zig
index 41efd1f..32d44c4 100644
--- a/example/streaming-clap.zig
+++ b/example/streaming-clap.zig
@@ -39,7 +39,11 @@ pub fn main() !void {
39 // Because we use a streaming parser, we have to consume each argument parsed individually. 39 // Because we use a streaming parser, we have to consume each argument parsed individually.
40 while (parser.next() catch |err| { 40 while (parser.next() catch |err| {
41 // Report useful error and exit 41 // Report useful error and exit
42<<<<<<< HEAD
43 diag.report(std.io.getStdErr().writer(), err) catch {};
44=======
42 diag.report(io.getStdErr().writer(), err) catch {}; 45 diag.report(io.getStdErr().writer(), err) catch {};
46>>>>>>> master
43 return err; 47 return err;
44 }) |arg| { 48 }) |arg| {
45 // arg.param will point to the parameter which matched the argument. 49 // arg.param will point to the parameter which matched the argument.