summaryrefslogtreecommitdiff
path: root/example/help.zig
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2022-03-30 16:28:16 +0200
committerGravatar Komari Spaghetti2022-03-30 21:57:51 +0200
commit984c22948b70bd1cbfef9f2d514d42e27541c1f1 (patch)
tree3693976dccd1fa8c9ff5d722aba4d306a10c9fdf /example/help.zig
parentFix long param parsing with '-' and '\_' in name (diff)
downloadzig-clap-984c22948b70bd1cbfef9f2d514d42e27541c1f1.tar.gz
zig-clap-984c22948b70bd1cbfef9f2d514d42e27541c1f1.tar.xz
zig-clap-984c22948b70bd1cbfef9f2d514d42e27541c1f1.zip
New `help` api that provides options as to how paramters are printed.
fixes \#28
Diffstat (limited to '')
-rw-r--r--example/help.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/help.zig b/example/help.zig
index 64d1709..18d61b9 100644
--- a/example/help.zig
+++ b/example/help.zig
@@ -15,5 +15,5 @@ pub fn main() !void {
15 // slice of Param(Help). There is also a helpEx, which can print a 15 // slice of Param(Help). There is also a helpEx, which can print a
16 // help message for any Param, but it is more verbose to call. 16 // help message for any Param, but it is more verbose to call.
17 if (res.args.help) 17 if (res.args.help)
18 return clap.help(std.io.getStdErr().writer(), clap.Help, &params); 18 return clap.help(std.io.getStdErr().writer(), clap.Help, &params, .{});
19} 19}