fix: Write to stdout instead of stderr

This commit is contained in:
Kalle Carlbark 2023-08-31 22:40:56 +02:00
parent 5086633e7e
commit ac3ffb9e58
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ pub fn build(b: *std.Build) void {
const clap = clap_dep.module("clap"); const clap = clap_dep.module("clap");
var opt = b.addOptions(); var opt = b.addOptions();
opt.addOption([]const u8, "version", "0.0.1"); opt.addOption([]const u8, "version", "0.0.2");
const exe = b.addExecutable(.{ const exe = b.addExecutable(.{
.name = "b64", .name = "b64",
// In this case the main source file is merely a path, however, in more // In this case the main source file is merely a path, however, in more

View file

@ -1,6 +1,6 @@
.{ .{
.name = "b64", .name = "b64",
.version = "0.0.1", .version = "0.0.2",
.dependencies = .{ .dependencies = .{
.clap = .{ .clap = .{
.url = "https://github.com/Hejsil/zig-clap/archive/refs/tags/0.7.0.tar.gz", .url = "https://github.com/Hejsil/zig-clap/archive/refs/tags/0.7.0.tar.gz",

View file

@ -96,7 +96,7 @@ pub fn main() !void {
defer allocator.free(decodedString); defer allocator.free(decodedString);
std.debug.print("{s}", .{decodedString}); try stdout.writer().print("{s}", .{decodedString});
return; return;
} }