From d83747d4d57b339ce2cc42b785436126a8e8c4c6 Mon Sep 17 00:00:00 2001 From: joachimschmidt557 Date: Sat, 11 Apr 2020 14:11:08 +0200 Subject: update examples to latest zig --- example/help.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'example/help.zig') diff --git a/example/help.zig b/example/help.zig index 1191482..2775177 100644 --- a/example/help.zig +++ b/example/help.zig @@ -4,13 +4,12 @@ const clap = @import("clap"); pub fn main() !void { const stderr_file = std.io.getStdErr(); var stderr_out_stream = stderr_file.outStream(); - const stderr = &stderr_out_stream.stream; // clap.help is a function that can print a simple help message, given a // slice of Param(Help). There is also a helpEx, which can print a // help message for any Param, but it is more verbose to call. try clap.help( - stderr, + stderr_out_stream, comptime &[_]clap.Param(clap.Help){ clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, clap.parseParam("-v, --version Output version information and exit.") catch unreachable, -- cgit v1.2.3