Skip to content

Dan149/zarginator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zarginator

Easy-to-use command line args management library for zig.

How to add Zarginator package to your zig project:

First add Zarginator to your build.zig.zon dependencies:

zig fetch --save git+https://github.com/Dan149/zarginator/#HEAD

Then add the dependency to your build.zig file:

(...)

const zarginator_package = b.dependency("zarginator", .{
        .target = target,
        .optimize = optimize,
    });

const zarginator_module = zarginator_package.module("zarginator");
exe.root_module.addImport("zarginator", zarginator_module);

How to use Zarginator:

Import: const zarg = @import("zarginator");

See main.zig file and Flag struct in root.zig file.

Releases

No releases published

Packages

No packages published

Languages