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