Skip to content

Commit

Permalink
Add installation instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
12ball authored and Hejsil committed Jun 9, 2024
1 parent 60cd46a commit 7a51c11
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ version of zig-clap that targets a specific Zig release, have a look
at the releases. Each release specifies the Zig version it compiles with
in the release notes.

## Installation

First, run the following:

```
zig fetch --save git+https://github.com/Hejsil/zig-clap
```

Then add the following to `build.zig`:

```zig
const clap = b.dependency("clap", .{});
exe.root_module.addImport("clap", clap.module("clap"));
```

## Features

* Short arguments `-a`
Expand Down
15 changes: 15 additions & 0 deletions example/README.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ version of zig-clap that targets a specific Zig release, have a look
at the releases. Each release specifies the Zig version it compiles with
in the release notes.

## Installation

First, run the following:

```
zig fetch --save git+https://github.com/Hejsil/zig-clap
```

Then add the following to `build.zig`:

```zig
const clap = b.dependency("clap", .{{}});
exe.root_module.addImport("clap", clap.module("clap"));
```

## Features

* Short arguments `-a`
Expand Down

0 comments on commit 7a51c11

Please sign in to comment.