diff options
| author | 2019-08-17 15:21:45 +0200 | |
|---|---|---|
| committer | 2019-08-17 15:21:45 +0200 | |
| commit | 7399ee309e960733c3f6701eba685fbe284365cf (patch) | |
| tree | cb061d7d326a2a5385ecec2dc5bd0d11fa7a4d34 /example/README.md.template | |
| parent | build with latest version of zig (diff) | |
| download | zig-clap-7399ee309e960733c3f6701eba685fbe284365cf.tar.gz zig-clap-7399ee309e960733c3f6701eba685fbe284365cf.tar.xz zig-clap-7399ee309e960733c3f6701eba685fbe284365cf.zip | |
adds parseParam
a less verbose way of getting a Param(Help).
Diffstat (limited to 'example/README.md.template')
| -rw-r--r-- | example/README.md.template | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/README.md.template b/example/README.md.template index 88914fb..446fd78 100644 --- a/example/README.md.template +++ b/example/README.md.template | |||
| @@ -67,8 +67,8 @@ program can take. | |||
| 67 | -v, --version Output version information and exit. | 67 | -v, --version Output version information and exit. |
| 68 | ``` | 68 | ``` |
| 69 | 69 | ||
| 70 | The `help` function is the simplest to call. It only takes an `OutStream` and a slice of | 70 | The `help` functions are the simplest to call. It only takes an `OutStream` and a slice of |
| 71 | `Param([]const u8)`. This function assumes that the id of each parameter is the help message. | 71 | `Param(Help)`. |
| 72 | 72 | ||
| 73 | The `helpEx` is the generic version of `help`. It can print a help message for any | 73 | The `helpEx` is the generic version of `help`. It can print a help message for any |
| 74 | `Param` give that the caller provides functions for getting the help and value strings. | 74 | `Param` give that the caller provides functions for getting the help and value strings. |