blob: b4ecc6587722b0b9f3f2eae76bdd22e976eaac1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# zig-clap
A non allocating, fast and easy to use command line argument parser library for Zig.
## Features
See [example](example.zig).
* Assosiate arguements with fields of a struct.
* When an arguement is found by the clap, the field is set to a parsed version of the value.
* `zig-clap` provides some default parses, but you can make your own as well.
* Short arguments `-a`
* Chaining `-abc` where `a` and `b` does not take values.
* Long arguments `--long`
* Supports both passing values using spacing and `=` (`-a 100`, `-a=100`)
* Short args also support passing values with no spacing or `=` (`-a100`)
* This all works with chaining (`-ba 100`, `-ba=100`, `-ba100`)
|