diff options
| author | 2021-07-17 10:43:05 +0000 | |
|---|---|---|
| committer | 2021-07-17 10:43:05 +0000 | |
| commit | 9bff7f332b86a18ff2f34e5c59ebdad5336e9850 (patch) | |
| tree | c52a4f776554ae4378f57a35d8b6b264a89cb739 /example/simple-ex.zig | |
| parent | Forward diagnostics down to StreamingClap (diff) | |
| download | zig-clap-9bff7f332b86a18ff2f34e5c59ebdad5336e9850.tar.gz zig-clap-9bff7f332b86a18ff2f34e5c59ebdad5336e9850.tar.xz zig-clap-9bff7f332b86a18ff2f34e5c59ebdad5336e9850.zip | |
Use debug.print instead of deprecated debug.warn in examples
fixes comment on #11
Diffstat (limited to '')
| -rw-r--r-- | example/simple-ex.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/simple-ex.zig b/example/simple-ex.zig index 838b9c2..5653fd1 100644 --- a/example/simple-ex.zig +++ b/example/simple-ex.zig | |||
| @@ -36,11 +36,11 @@ pub fn main() !void { | |||
| 36 | defer args.deinit(); | 36 | defer args.deinit(); |
| 37 | 37 | ||
| 38 | if (args.flag("--help")) | 38 | if (args.flag("--help")) |
| 39 | debug.warn("--help\n", .{}); | 39 | debug.print("--help\n", .{}); |
| 40 | if (args.option("--number")) |n| | 40 | if (args.option("--number")) |n| |
| 41 | debug.warn("--number = {s}\n", .{n}); | 41 | debug.print("--number = {s}\n", .{n}); |
| 42 | for (args.options("--string")) |s| | 42 | for (args.options("--string")) |s| |
| 43 | debug.warn("--string = {s}\n", .{s}); | 43 | debug.print("--string = {s}\n", .{s}); |
| 44 | for (args.positionals()) |pos| | 44 | for (args.positionals()) |pos| |
| 45 | debug.warn("{s}\n", .{pos}); | 45 | debug.print("{s}\n", .{pos}); |
| 46 | } | 46 | } |