diff options
Diffstat (limited to 'example')
| -rw-r--r-- | example/simple-ex.zig | 4 | ||||
| -rw-r--r-- | example/streaming-clap.zig | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/example/simple-ex.zig b/example/simple-ex.zig index f08751b..88598aa 100644 --- a/example/simple-ex.zig +++ b/example/simple-ex.zig | |||
| @@ -30,7 +30,11 @@ pub fn main() !void { | |||
| 30 | .diagnostic = &diag, | 30 | .diagnostic = &diag, |
| 31 | }) catch |err| { | 31 | }) catch |err| { |
| 32 | // Report useful error and exit | 32 | // Report useful error and exit |
| 33 | <<<<<<< HEAD | ||
| 34 | diag.report(std.io.getStdErr().writer(), err) catch {}; | ||
| 35 | ======= | ||
| 33 | diag.report(io.getStdErr().writer(), err) catch {}; | 36 | diag.report(io.getStdErr().writer(), err) catch {}; |
| 37 | >>>>>>> master | ||
| 34 | return err; | 38 | return err; |
| 35 | }; | 39 | }; |
| 36 | defer args.deinit(); | 40 | defer args.deinit(); |
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. |