joegm/flags
An effortless command-line argument parser for Zig.
An effortless command-line argument parser for Zig.
To import flags to your project, run the following command:
zig fetch --save git+https://github.com/n0s4/flags
Then set up the dependency in your build.zig
:
const flags_dep = b.dependency("flags", .{
.target = target,
.optimize = optimize,
})
exe.root_module.addImport("flags", flags_dep.module("flags"));
See the examples for basic usage.