summaryrefslogtreecommitdiff
path: root/README.md
blob: b90f5cd36909f0c9ea04dfd4a4678e6e38ff9ef2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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`)
  * Both work with chaining (`-ba 100`, `-ba=100`)