Argument parser for Zig.
- Opposite flags (
--foo/--no-foo,--uppercase/--lowercase), which act on a single variable and are mutually exclusive - Values with and without equals sign (
--foo barand--foo=barare both valid and equivalent) - Bool flags never take a value, non-bool flags always do
- Shorthands for bool flags
- Everything is defined in a single struct, with the power of Zig's
comptime
Examples are available in the examples folder. They can also be run via zig build example-[name].