/flags

An effortless command-line argument parser for Zig.

Primary LanguageZigMIT LicenseMIT

flags

An effortless command-line argument parser for Zig.

Features

  • Zero allocations.
  • Declaratively define your command as a plain Zig type.
  • Single-function API.
  • Multi-level subcommands.
  • Automatic help message generation at comptime.

Getting Started

See the examples for basic usage.

Check out the import guide to get set up using flags in your project.