summaryrefslogtreecommitdiff
path: root/example/streaming-clap.zig
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2020-04-18 16:46:45 +0200
committerGravatar Jimmi Holst Christensen2020-04-18 16:46:45 +0200
commit11753e80d6876fd74a308cbb3bb5d31072d949b0 (patch)
treee6cdd03aa4fe7ce2ffd8c6db91b059a76565464c /example/streaming-clap.zig
parentMerge branch 'master' into zig-master (diff)
downloadzig-clap-11753e80d6876fd74a308cbb3bb5d31072d949b0.tar.gz
zig-clap-11753e80d6876fd74a308cbb3bb5d31072d949b0.tar.xz
zig-clap-11753e80d6876fd74a308cbb3bb5d31072d949b0.zip
Run zig fmt on buildv0.2.0
Diffstat (limited to 'example/streaming-clap.zig')
-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 }