Just a simple argument parser for Zig. Helped me to learn Zig and is helpful for many of my learning projects. It is simple and easy to use.
See src/main.zig for usage. This is meant to be a library, but it was not possible for me to run tests with process arguments. So that is
why it has an executable in the build.zig. Pass any arguments that have a name and value to the Iterator.init() function, eg. --quality 75
would need to be Iterator.init(&[_][]const u8{"quality"}) for the parser to work correctly. You could also pass a blank array or just use
Iterator.next() to get every argument (although you might as well use std.process.args() at that point).
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|