Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

Simple process arguments iterator in Zig.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages