diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 15 |
1 files changed, 15 insertions, 0 deletions
| @@ -10,6 +10,21 @@ version of zig-clap that targets a specific Zig release, have a look | |||
| 10 | at the releases. Each release specifies the Zig version it compiles with | 10 | at the releases. Each release specifies the Zig version it compiles with |
| 11 | in the release notes. | 11 | in the release notes. |
| 12 | 12 | ||
| 13 | ## Installation | ||
| 14 | |||
| 15 | First, run the following: | ||
| 16 | |||
| 17 | ``` | ||
| 18 | zig fetch --save git+https://github.com/Hejsil/zig-clap | ||
| 19 | ``` | ||
| 20 | |||
| 21 | Then add the following to `build.zig`: | ||
| 22 | |||
| 23 | ```zig | ||
| 24 | const clap = b.dependency("clap", .{}); | ||
| 25 | exe.root_module.addImport("clap", clap.module("clap")); | ||
| 26 | ``` | ||
| 27 | |||
| 13 | ## Features | 28 | ## Features |
| 14 | 29 | ||
| 15 | * Short arguments `-a` | 30 | * Short arguments `-a` |