Skip to content

flagZ-v1.0.0

Choose a tag to compare

@M64GitHub M64GitHub released this 25 Mar 01:05
· 10 commits to master since this release
66b2092

flagZ v1.0.0

flagZ v1.0.0 introduces a streamlined approach to command-line flag parsing in Zig. Designed for simplicity, it lets field names define flags, delivering direct parsing for Zig structs. This initial release offers a focused, efficient tool for Zig developers.

Highlights

  • Field names define -flags for intuitive parsing (e.g., -name or -n sets name).
  • Supports bool, integers (u1 to u8388608, i1 to i8388608), floats (f32, f64), and strings ([]u8, [N]u8), with optional variants (?T).
  • Fuzzy matching for short flags (e.g., -v sets verbose).
  • Robust error handling: MissingValue, StringTooLong, InvalidIntValue, NegativeValueNotAllowed, Overflow.