Skip to content

Zig library to parse and use command line flags and arguments.

Notifications You must be signed in to change notification settings

amirrezaask/cli.zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cli.zig

Library to parse and use command line flags

Usage

const cli = @import("cli")


pub fn main() !void {
    const parsed = try cli.parse()
    // get a flag
    const flag_value = parsed.get_flag("flag");

    // get an argument
    const argument = parsed.get_nth_arg(1);
}

About

Zig library to parse and use command line flags and arguments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages