Installation
Add zig-cli to your build.zig.zon:
zig fetch --save git+https://github.com/zig-utils/zig-cli
Then wire the module up in build.zig:
const zig_cli = b.dependency("zig_cli", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("zig_cli", zig_cli.module("zig_cli"));
Requires Zig 0.17.0-dev or newer.
Or through Pantry:
pantry add zig-cli