summaryrefslogtreecommitdiff
path: root/example/streaming-clap.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--example/streaming-clap.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/streaming-clap.zig b/example/streaming-clap.zig
index 4cc43d1..faf388a 100644
--- a/example/streaming-clap.zig
+++ b/example/streaming-clap.zig
@@ -39,12 +39,12 @@ pub fn main() !void {
39 // arg.param will point to the parameter which matched the argument. 39 // arg.param will point to the parameter which matched the argument.
40 switch (arg.param.id) { 40 switch (arg.param.id) {
41 'h' => debug.warn("Help!\n", .{}), 41 'h' => debug.warn("Help!\n", .{}),
42 'n' => debug.warn("--number = {}\n", .{ arg.value.? }), 42 'n' => debug.warn("--number = {}\n", .{arg.value.?}),
43 43
44 // arg.value == null, if arg.param.takes_value == false. 44 // arg.value == null, if arg.param.takes_value == false.
45 // Otherwise, arg.value is the value passed with the argument, such as "-a=10" 45 // Otherwise, arg.value is the value passed with the argument, such as "-a=10"
46 // or "-a 10". 46 // or "-a 10".
47 'f' => debug.warn("{}\n", .{ arg.value.? }), 47 'f' => debug.warn("{}\n", .{arg.value.?}),
48 else => unreachable, 48 else => unreachable,
49 } 49 }
50 } 50 }