Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dcrck/flags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flags

An effortless command-line argument parser for Zig.

Features

  • Zero allocations.
  • Cross platform.
  • Single-function, declarative API.
  • Multi-level subcommands.
  • Automatic help message generation at comptime.
  • Customisable terminal coloring.

Getting Started

To import flags to your project, run the following command:

zig fetch --save git+https://github.com/n0s4/flags

Then set up the dependency in your build.zig:

    const flags_dep = b.dependency("flags", .{
        .target = target,
        .optimize = optimize,
    })

    exe.root_module.addImport("flags", flags_dep.module("flags"));

See the examples for basic usage.

About

An effortless command-line argument parser for Zig.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Zig 100.0%